Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 9e636bb

Browse files
authored
Cleanup and Feedbacks (#298)
- Reduced the number of layers for Dockerfile - Removed travis.yml and install-crossdock-deps.sh - Removed double build of crossdock image Signed-off-by: Ashmita Bohara <[email protected]>
1 parent 6bf76a1 commit 9e636bb

File tree

6 files changed

+9
-92
lines changed

6 files changed

+9
-92
lines changed

.github/workflows/ci-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
tornado: ">=5,<6"
3737
- python: "3.7"
3838
tornado: ">=6"
39-
name: ci-tests (py ${{ matrix.version.python }} tornado ${{ matrix.version.tornado }})
39+
name: unit-tests (py ${{ matrix.version.python }} tornado ${{ matrix.version.tornado }})
4040
steps:
4141
- uses: actions/checkout@v2
4242
with:

.travis.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

crossdock/Dockerfile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,17 @@ FROM python:2.7
33
ARG tornado
44
ENV APPDIR /usr/src/app/
55
ENV TORNADO=$tornado
6-
RUN mkdir -p ${APPDIR}
76
WORKDIR ${APPDIR}
87

98
# Application installation
10-
COPY requirements-dev.txt ${APPDIR}
11-
COPY requirements-tests.txt ${APPDIR}
12-
COPY requirements.txt ${APPDIR}
13-
14-
COPY setup.py ${APPDIR}
15-
COPY setup.cfg ${APPDIR}
9+
COPY requirements-dev.txt requirements-tests.txt requirements.txt setup.py setup.cfg ${APPDIR}
1610
COPY jaeger_client ${APPDIR}/jaeger_client/
1711
COPY idl ${APPDIR}/idl/
1812

1913
# RUN pip install -U 'pip>=7,<8'
20-
RUN pip install --no-cache-dir -r requirements-dev.txt
21-
RUN pip install --no-cache-dir -r requirements-tests.txt
22-
RUN pip install --no-cache-dir -r requirements.txt
23-
RUN python setup.py install
24-
RUN pip install --no-cache-dir "tornado${TORNADO}"
14+
RUN pip install --no-cache-dir -r requirements-dev.txt -r requirements-tests.txt -r requirements.txt && \
15+
python setup.py install && \
16+
pip install --no-cache-dir "tornado${TORNADO}"
2517

2618
COPY crossdock ${APPDIR}/crossdock/
2719
COPY crossdock/setup_crossdock.py ${APPDIR}

crossdock/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ services:
5757
- "8080-8082"
5858

5959
python:
60+
image: jaegertracing/xdock-py
6061
build:
6162
context: ../.
6263
args:

scripts/build-crossdock.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ else
2121
exit 0
2222
fi
2323

24-
docker build -f crossdock/Dockerfile \
25-
--build-arg tornado=$TORNADO \
26-
--tag $REPO:$COMMIT .
27-
24+
# This image is already built in "make crossdock" step
25+
# not specifying a tag means "latest" tag implicitly
26+
docker tag $REPO $REPO:$COMMIT
2827
docker tag $REPO:$COMMIT $REPO:$TAG
29-
docker tag $REPO:$COMMIT $REPO:gh-$GITHUB_RUN_NUMBER
3028
docker push $REPO

scripts/install-crossdock-deps.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)