Skip to content

Instantly share code, notes, and snippets.

@calum-github
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save calum-github/69c6769966fda8cdabe3 to your computer and use it in GitHub Desktop.

Select an option

Save calum-github/69c6769966fda8cdabe3 to your computer and use it in GitHub Desktop.
## Steps to get the container to work
# first clone down the source
git clone https://bitbucket.org/bruienne/bsdpy
# move into the docker directory and set the +x on start.sh
chmod +x start.sh
# Edit the docker file and add the following
ENV DOCKER_BSDPY_PATH /nbi
# now edit start
nano start.sh
# edit the content as shown below, note that we are stopping the git pull, as it fails due to being behind a proxy server and not having
# the git global config proxy server
#!/bin/bash
# /usr/local/bin/nfs-client
sleep 2
service nginx start
/usr/sbin/in.tftpd -l --permissive /nbi
cd /bsdpy
#git pull
./bsdpserver.py -p ${DOCKER_BSDPY_PATH} -i ${DOCKER_BSDPY_IFACE} -r ${DOCKER_BSDPY_PROTO} &
sleep 2
tail -f /var/log/bsdpserver.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment