Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPI build #14

Open
lavvy opened this issue Sep 2, 2016 · 3 comments
Open

RPI build #14

lavvy opened this issue Sep 2, 2016 · 3 comments

Comments

@lavvy
Copy link

lavvy commented Sep 2, 2016

hello i tried to build an arm docker container of this project but failed. please can you make a
Dockerfile.armhf for it. i think it nice to have for raspberry pi. it appears light and sleek

@jeroenpeeters
Copy link
Owner

Sorry, but I have no experience with Docker on ARM architecture. Can you please send me what you tried. Maybe I can make it work.

@lavvy
Copy link
Author

lavvy commented Sep 3, 2016

#FROM gliderlabs/alpine

FROM hypriot/rpi-alpine-scratch
WORKDIR /src
ADD . .

RUN apk --update add python make g++ nodejs
&& npm install
&& apk del make gcc g++ python
&& rm -rf /tmp/* /var/cache/apk/* /root/.npm /root/.node-gyp

make coffee executable

RUN chmod +x ./node_modules/coffee-script/bin/coffee

Connect to container with name/id

ENV CONTAINER=

Shell to use inside the container

ENV CONTAINER_SHELL=bash

Server key

ENV KEYPATH=./id_rsa

Server port

ENV PORT=22

Enable web terminal

ENV HTTP_ENABLED=true

HTTP Port

ENV HTTP_PORT=8022

EXPOSE 22 8022

CMD ["npm", "start"]

It's still the same process just that you will have to change the base os to an arm os and build it on an arm platform like rpi or scaleway.

@lavvy
Copy link
Author

lavvy commented Sep 3, 2016

It gets error while installing the apk apps. Maybe it didn't find some of its arm compatible apps. I believe if it's apt-get, it would get most of its required armhf equivalent apps. I don't know much of alpine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants