docker-ssh icon indicating copy to clipboard operation
docker-ssh copied to clipboard

RPI build

Open lavvy opened this issue 9 years ago • 3 comments

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

lavvy avatar Sep 02 '16 17:09 lavvy

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.

jeroenpeeters avatar Sep 03 '16 07:09 jeroenpeeters

#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 avatar Sep 03 '16 13:09 lavvy

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

lavvy avatar Sep 03 '16 13:09 lavvy