Skip to content

Instantly share code, notes, and snippets.

@bladedoyle
Created September 27, 2017 15:27
Show Gist options
  • Save bladedoyle/7f05a0978b9f4c3fbc398d506765352b to your computer and use it in GitHub Desktop.
Save bladedoyle/7f05a0978b9f4c3fbc398d506765352b to your computer and use it in GitHub Desktop.
OpenBazaar 1 Docker
FROM ubuntu:latest
RUN set -e && \
apt-get update -q && \
apt-get install -y git gconf2 gconf-service gvfs-bin libgtk2.0-0 libnotify4 \
wget libnss3 libxtst6 python xdg-utils libxss1 libasound2
RUN apt-get install -y python python-pip
WORKDIR /ob
RUN apt-get install -y libffi-dev python-dev
# Install server
RUN git clone https://github.com/OpenBazaar/OpenBazaar-Server.git
COPY requirements.txt /ob/OpenBazaar-Server/requirements.txt
RUN cd OpenBazaar-Server && \
pip install -r requirements.txt
# Install client
RUN wget https://github.com/OpenBazaar/OpenBazaar-Installer/releases/download/v1
.1.11/openbazaarclient_1.1.11_amd64.deb && \
dpkg -i openbazaarclient_1.1.11_amd64.deb && \
rm openbazaarclient_1.1.11_amd64.deb
COPY entrypoint.sh /
CMD ["/entrypoint.sh"]
#!/bin/bash
cd /ob/OpenBazaar-Server && python openbazaard.py start -d -t
/usr/bin/openbazaarclient
CONTAINER := openbazzar
RUN_ARGS := -v /tmp/.X11-unix:/tmp/.X11-unix:ro -e DISPLAY=${DISPLAY} -e QT_X11_NO_MITSHM=1
all: build run
build:
docker build -t $(CONTAINER) .
run:
@echo "Restarting $(CONTAINER)"
-docker kill $(CONTAINER)
-docker rm $(CONTAINER)
docker run -d $(RUN_ARGS) --name="$(CONTAINER)" $(CONTAINER)
shell:
@echo "Shell in $(CONTAINER)"
docker exec -it $(CONTAINER) /bin/bash
clean:
-docker kill $(CONTAINER)
-docker rm $(CONTAINER)
protobuf==3.0.0b2
Twisted==16.3.0
txrudp==0.5.1
pystun==0.1.0
bitcointools==1.1.44
gnupg==2.0.2
pynacl==1.0.1
txrestapi==0.2
txws==0.9.1
python-libbitcoinclient==0.4.3
python-bitcoinlib==0.5.1
pyopenssl==16.2.0
miniupnpc==1.9
bleach==1.4.3
html5lib==0.9999999
service_identity==16.0.0
certifi==2016.9.26
requests==2.18.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment