Skip to content

Commit

Permalink
Remove copy config.js, since it is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Ton-O committed Nov 25, 2020
1 parent 166739b commit b125d61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions Docker/Raspberry_Pi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,26 +51,25 @@ USER meta
RUN ls -al / | grep -i config
RUN ls -al /config
RUN id
#RUN pm2 startup
RUN npm install --no-color --prefix "/opt/meta/" jac459/metadriver
RUN pm2 start /opt/meta/node_modules/@jac459/metadriver/meta.js
RUN pm2 start mosquitto
RUN pm2 start node-red

# uncomment next command to prevent autodiscovery of brain
COPY config/config.js /opt/meta/node_modules/@jac459/metadriver/config.js
#COPY config/config.js /opt/meta/node_modules/@jac459/metadriver/config.js
#COPY flows_cred.json /data/flows_cred.json
#COPY flows.json /data/flows.json

# Add configuration and scripts
ADD startup/ /etc/meta/

ENV OPENVPN_USERDIR=**None**
EXPOSE 1880-1883
EXPOSE 3000
expose 4000-4100
#ENV OPENVPN_USERDIR=**None**
#EXPOSE 1880-1883
#EXPOSE 3000
#expose 4000-4100
RUN pm2 save
# Expose port and run
#CMD ["dumb-init", "bash -c 'sleep 99m'"]
#CMD "bash -c 'sleep 99m'"
CMD /usr/bin/node /opt/meta/node_modules/@jac459/metadriver/meta.js

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ Some steps may be optional for you when you;ve bought a Raspberry PI with and SD
6) This would be a good time to change the default password of the user named pi: just type passwd, then you will be asked to enter the current password, then type in a new one and once again to verify it.
7) Now it's time to do some real work, installing docker. This is described in https://phoenixnap.com/kb/docker-on-raspberry-pi. Follow the instructions over there just as they are presented, don't experiment with them.
Please note: you have to add the user pi to the group docker (as told on this site), then logout and login again.
8) Once that's done, you can get the meta-image created on your docker host. Type curl -fsSL https://raw.githubusercontent.com/jac459/neeo2021onward/main/Docker/Raspberry_Pi/Dockerfile Dockerfile
9) You can now start to create a Docker image by this command "docker build -t meta:1 ." (without the quotes). Depending on the speed of your RPi, that may take up to 15 minutes.
8) Once that's done, you can get the meta-image created on your docker host. Type curl -fsSL https://raw.githubusercontent.com/jac459/neeo2021onward/main/Docker/Raspberry_Pi/Dockerfile -o Dockerfile
9) You can now start to create a Docker image by this command "docker build -t meta:1 ." (without the quotes). Depending on the speed of your RPi, that may take up to 30 minutes; we're working on getting an image available that can be downloaded directly.
10) If the build process ends with

0 comments on commit b125d61

Please sign in to comment.