Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
added Dockerfile for Python version of result-processing to allow usa…
Browse files Browse the repository at this point in the history
…ge of Python 3 in data processors
  • Loading branch information
jaroslavl1 committed Aug 12, 2015
1 parent 2a88bdb commit 0d8f9e6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
22 changes: 15 additions & 7 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,30 @@ machine:
- docker
dependencies:
override:
- docker build -f distribution/release/Dockerfile -t gaiaadm/result-processing:$BUILD_TAG .
- docker build -f distribution/release/nodejs/Dockerfile -t gaiaadm/result-processing:$BUILD_TAG .
- docker build -f distribution/release/python/Dockerfile -t gaiaadm/result-processing:$BUILD_TAG-python .
test:
override:
- docker run -d -e RABBITMQ_PASS="mypass" --name rabbitmq gaiaadm/rabbitmq; sleep 10
# run system tests
# run system tests on pure Node.js image
- docker run -e AMQ_USER="admin" -e AMQ_PASSWORD="mypass" --link rabbitmq:amqserver --name system-test-runner gaiaadm/result-processing:$BUILD_TAG grunt system
- docker cp system-test-runner:/src/unit-test-results.xml $CIRCLE_TEST_REPORTS
- docker cp system-test-runner:/src/unit-test-results.txt $CIRCLE_ARTIFACTS
- docker cp system-test-runner:/src/system-test-results.xml $CIRCLE_TEST_REPORTS
- docker cp system-test-runner:/src/system-test-results.txt $CIRCLE_ARTIFACTS
- docker cp system-test-runner:/src/unit-test-results.xml $CIRCLE_TEST_REPORTS/nodejs
- docker cp system-test-runner:/src/unit-test-results.txt $CIRCLE_ARTIFACTS/nodejs
- docker cp system-test-runner:/src/system-test-results.xml $CIRCLE_TEST_REPORTS/nodejs
- docker cp system-test-runner:/src/system-test-results.txt $CIRCLE_ARTIFACTS/nodejs
# run system tests on Python image
- docker run -e AMQ_USER="admin" -e AMQ_PASSWORD="mypass" --link rabbitmq:amqserver --name system-test-runner-python gaiaadm/result-processing:$BUILD_TAG-python grunt system
- docker cp system-test-runner-python:/src/unit-test-results.xml $CIRCLE_TEST_REPORTS/python
- docker cp system-test-runner-python:/src/unit-test-results.txt $CIRCLE_ARTIFACTS/python
- docker cp system-test-runner-python:/src/system-test-results.xml $CIRCLE_TEST_REPORTS/python
- docker cp system-test-runner-python:/src/system-test-results.txt $CIRCLE_ARTIFACTS/python
deployment:
hub:
branch: master
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push gaiaadm/result-processing
- docker push gaiaadm/result-processing:$BUILD_TAG
- docker push gaiaadm/result-processing:$BUILD_TAG-python
general:
branches:
only:
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions distribution/release/python/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM gaiaadm/nodejs-python:3.4.0

# Bundle app source
COPY . /src

# setup.sh script is temporary workaround until Docker adds support for passing ENV variables
# to docker build command to allow setting up proxy
ADD setup.sh /tmp/setup.sh
RUN chmod +x /tmp/setup.sh
RUN /tmp/setup.sh

# Set the working directory
WORKDIR /src

RUN grunt jshint
RUN grunt unit

CMD ["node", "/src/server.js"]

0 comments on commit 0d8f9e6

Please sign in to comment.