Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 68d1e97

Browse files
committed
Refactor Dockerfile.dev to derive from latest Dockerfile.qa
1 parent 232c4ab commit 68d1e97

File tree

3 files changed

+6
-40
lines changed

3 files changed

+6
-40
lines changed

Dockerfile.dev

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,4 @@
1-
FROM golang:1.11
2-
VOLUME /var/lib/openbazaar
3-
4-
RUN wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz && \
5-
tar xvf Python-3.6.0.tgz && \
6-
cd Python-3.6.0 && \
7-
./configure --enable-optimizations && \
8-
make -j8
9-
RUN apt-get update && apt-get install -yq zlib1g-dev libssl-dev unzip
10-
RUN cd Python-3.6.0 && \
11-
make altinstall && \
12-
ln -s /usr/local/bin/python3.6 /usr/local/bin/python3
13-
14-
COPY ./qa/requirements.txt ./requirements.txt
15-
16-
RUN pip3.6 install --upgrade pip && \
17-
pip3.6 install -r requirements.txt && \
18-
wget https://bitcoin.org/bin/bitcoin-core-0.16.3/bitcoin-0.16.3-x86_64-linux-gnu.tar.gz && \
19-
tar -xvzf bitcoin-0.16.3-x86_64-linux-gnu.tar.gz -C /opt
20-
21-
RUN wget https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.0-linux-x86_64.zip && \
22-
unzip ./protoc-3.6.0-linux-x86_64.zip -x readme.txt && \
23-
mv ./include/* /usr/local/include/ && \
24-
mv ./bin/protoc /usr/local/bin/ && \
25-
rm -rf ./include ./bin
1+
FROM docker.dev.ob1.io/openbazaar-qa:0.10
262

273
RUN go get -u github.com/gogo/protobuf/proto \
284
github.com/golang/protobuf/protoc-gen-go \

Dockerfile.qa

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ RUN wget https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.
1818
mv ./bin/protoc /usr/local/bin/ && \
1919
rm -rf ./include ./bin
2020

21-
RUN go get -u github.com/gogo/protobuf/proto \
22-
github.com/golang/protobuf/protoc-gen-go \
23-
github.com/icrowley/fake \
24-
github.com/derekparker/delve/cmd/dlv \
25-
github.com/tools/godep
26-
27-
WORKDIR /go/src/github.com/golang/protobuf
28-
29-
RUN git checkout tags/v1.2.0 -b v1.2.0 && \
30-
cd protoc-gen-go && \
31-
go install
32-
3321
COPY ./qa/requirements.txt ./requirements.txt
3422

3523
RUN python3 -m pip install --upgrade pip && \
@@ -38,7 +26,9 @@ RUN python3 -m pip install --upgrade pip && \
3826
tar -xvzf bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz -C /opt
3927

4028
WORKDIR /go/src/github.com/OpenBazaar/openbazaar-go
29+
4130
COPY ./Makefile ./Makefile
31+
4232
VOLUME /go/src/github.com/OpenBazaar/openbazaar-go
4333

4434
CMD make qa

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@ OB_DOCKER_REGISTRY ?= docker.dev.ob1.io
5151

5252
DOCKER_IMAGE_NAME ?= $(PUBLIC_DOCKER_REGISTRY_PROFILE)/server:$(GIT_TAG)
5353
DOCKER_QA_IMAGE_NAME ?= $(OB_DOCKER_REGISTRY)/openbazaar-qa:$(GIT_SHA)
54-
DOCKER_DEV_IMAGE_NAME ?= $(OB_DOCKER_REGISTRY)/openbazaar-dev:$(GIT_SHA)
54+
DOCKER_DEV_IMAGE_NAME ?= openbazaar-dev:$(GIT_SHA)
5555

5656

5757
.PHONY: docker
5858
docker:
5959
docker build -t $(DOCKER_IMAGE_NAME) .
6060

6161
.PHONY: push_docker
62-
push_docker:
62+
push_docker: docker
6363
docker push $(DOCKER_IMAGE_NAME)
6464

6565
.PHONY: qa_docker
6666
qa_docker:
6767
docker build -t $(DOCKER_QA_IMAGE_NAME) -f ./Dockerfile.qa .
6868

6969
.PHONY: push_qa_docker
70-
push_qa_docker:
70+
push_qa_docker: qa_docker
7171
docker push $(DOCKER_QA_IMAGE_NAME)
7272

7373
.PHONY: dev_docker

0 commit comments

Comments
 (0)