Skip to content

Commit

Permalink
Substantial cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfr committed Jan 11, 2018
1 parent 9458f7f commit b163af1
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 227 deletions.
19 changes: 6 additions & 13 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
.git
**/.DS_Store
**/.*sw[op]
**/*.py[co]
**/*.egg-info

# --- Below Should mirror .gitignore, without leading '/' --- #
.DS_Store
.*sw[op]
*.py[co]
*.egg-info
persistent
runtime
bootstrap.json
.cache
.coverage*
coverage.xml
htmlcov
node_modules
/.coverage*
/htmlcov
File renamed without changes.
File renamed without changes.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
.*sw[op]
*.py[co]
*.egg-info
/persistent
/runtime
bootstrap.json
.cache

/.coverage*
coverage.xml
/htmlcov
node_modules/
/bin/accesslog.csv
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ script:
- docker build -t core:dist --target dist --build-arg VCS_BRANCH="$TRAVIS_BRANCH" --build-arg VCS_COMMIT="$TRAVIS_COMMIT" .
- docker build -t core:testing --target dev .
- docker save -o "$DOCKER_DIR/image.tar" $(docker history -q core:build | grep -v '<missing>') $(docker history -q core:dist | grep -v '<missing>')
- ./tests/bin/run-tests-docker.sh --image core:testing
- ./tests/bin/docker-tests.sh --image core:testing

after_success:
- if [ "$TRAVIS_TAG" ]; then
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ VOLUME /data/persistent
WORKDIR /src/core
ENV SCITRAN_PERSISTENT_DATA_PATH=/data/persistent

COPY docker/unit.json /var/local/unit/conf.json
COPY nginx-unit.json /var/local/unit/conf.json
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

Expand All @@ -33,9 +33,9 @@ RUN pip install -e .

ARG VCS_BRANCH=NULL
ARG VCS_COMMIT=NULL
RUN docker/build_info.sh $VCS_BRANCH $VCS_COMMIT | tee /version.json
RUN ./bin/build_info.sh $VCS_BRANCH $VCS_COMMIT | tee /version.json

ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["./bin/entrypoint.sh"]
CMD ["unitd", "--control", "*:8080", "--no-daemon", "--log", "/dev/stdout"]


Expand All @@ -47,4 +47,4 @@ RUN apk add --no-cache mongodb

RUN pip install -r tests/requirements.txt

CMD ["./docker/dev+mongo.sh"]
CMD ["./bin/dev+mongo.sh"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 0 additions & 29 deletions bootstrap.sample.json

This file was deleted.

61 changes: 0 additions & 61 deletions docker/README.md

This file was deleted.

28 changes: 0 additions & 28 deletions docker/bootstrap-accounts.sh

This file was deleted.

77 changes: 0 additions & 77 deletions docker/bootstrap-data.sh

This file was deleted.

5 changes: 0 additions & 5 deletions docker/pymongo-cli.py

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/bin/run-tests-docker.sh → tests/bin/docker-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Options:
-B, --no-build Skip rebuilding default Docker image
--image IMAGE Use custom Docker image
-- TEST_ARGS Arguments passed to tests/bin/run-tests-ubuntu.sh
-- TEST_ARGS Arguments passed to tests/bin/tests.sh
"

Expand Down Expand Up @@ -89,7 +89,7 @@ main() {
--env SCITRAN_PERSISTENT_DB_URI=mongodb://core-test-service:27017/scitran \
--env SCITRAN_PERSISTENT_DB_LOG_URI=mongodb://core-test-service:27017/logs \
scitran/core:testing \
tests/bin/run-tests-ubuntu.sh $TEST_ARGS
tests/bin/tests.sh $TEST_ARGS
}


Expand Down
File renamed without changes.

0 comments on commit b163af1

Please sign in to comment.