This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-40
lines changed Expand file tree Collapse file tree 3 files changed +6
-40
lines changed Original file line number Diff line number Diff line change 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
26
2
27
3
RUN go get -u github.com/gogo/protobuf/proto \
28
4
github.com/golang/protobuf/protoc-gen-go \
Original file line number Diff line number Diff line change @@ -18,18 +18,6 @@ RUN wget https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.
18
18
mv ./bin/protoc /usr/local/bin/ && \
19
19
rm -rf ./include ./bin
20
20
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
-
33
21
COPY ./qa/requirements.txt ./requirements.txt
34
22
35
23
RUN python3 -m pip install --upgrade pip && \
@@ -38,7 +26,9 @@ RUN python3 -m pip install --upgrade pip && \
38
26
tar -xvzf bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz -C /opt
39
27
40
28
WORKDIR /go/src/github.com/OpenBazaar/openbazaar-go
29
+
41
30
COPY ./Makefile ./Makefile
31
+
42
32
VOLUME /go/src/github.com/OpenBazaar/openbazaar-go
43
33
44
34
CMD make qa
Original file line number Diff line number Diff line change @@ -51,23 +51,23 @@ OB_DOCKER_REGISTRY ?= docker.dev.ob1.io
51
51
52
52
DOCKER_IMAGE_NAME ?= $(PUBLIC_DOCKER_REGISTRY_PROFILE ) /server:$(GIT_TAG )
53
53
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 )
55
55
56
56
57
57
.PHONY : docker
58
58
docker :
59
59
docker build -t $(DOCKER_IMAGE_NAME ) .
60
60
61
61
.PHONY : push_docker
62
- push_docker :
62
+ push_docker : docker
63
63
docker push $(DOCKER_IMAGE_NAME )
64
64
65
65
.PHONY : qa_docker
66
66
qa_docker :
67
67
docker build -t $(DOCKER_QA_IMAGE_NAME ) -f ./Dockerfile.qa .
68
68
69
69
.PHONY : push_qa_docker
70
- push_qa_docker :
70
+ push_qa_docker : qa_docker
71
71
docker push $(DOCKER_QA_IMAGE_NAME )
72
72
73
73
.PHONY : dev_docker
You can’t perform that action at this time.
0 commit comments