Skip to content

Commit c991b6b

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/one-click' into one-click
2 parents 2cb909e + a3a7bae commit c991b6b

File tree

5 files changed

+10
-41
lines changed

5 files changed

+10
-41
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,10 @@ COPY config.json.sample config.json
3131
RUN pip install -r /tmp/requirements.txt --no-cache-dir --ignore-installed
3232

3333
COPY --chown=app:root . .
34+
3435
FROM base as test
3536
CMD ["python" "-m", "pytest", "-v", "--cov", "--disable-warnings" ]
3637

37-
38-
FROM base as celery
39-
COPY ./docker-entrypoint-celery.sh /tmp/entrypoint-celery.sh
40-
ENTRYPOINT ["/tmp/entrypoint-celery.sh"]
41-
4238
FROM base as web
4339
COPY ./docker-entrypoint.sh /tmp/entrypoint.sh
4440
ENTRYPOINT ["/tmp/entrypoint.sh"]

constants.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"reason8": "The request raised is incorrect or is not required for the reason supplied. Please re-raise with corrections.",
1111
"reason9": "Please raise this via Group Access. Get in touch with your Lead/Manager to get yourself added to relevant Access Groups."
1212
}
13-
}
13+
}

docker-compose.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,9 @@ services:
1515
- 8000:8000
1616
depends_on:
1717
- db
18-
1918
command: >
20-
/bin/bash -c "
21-
while ! nc -z db 3306;
22-
do
23-
echo sleeping;
24-
sleep 1;
25-
done;
26-
echo Connected!;"
19+
bash -c "echo Starting Django runserver;
20+
python manage.py runserver 0.0.0.0:8000"
2721
db:
2822
container_name: db
2923
image: mysql/mysql-server:8.0.31
@@ -33,31 +27,30 @@ services:
3327
- ./secrets/ops_mysql_dev.env
3428
volumes:
3529
- ./dbs:/var/lib/mysql --socket=/tmp/mysql.sock
36-
37-
3830
redis:
3931
container_name: redis
4032
image: redis:alpine
4133
command: --port 6379
4234
ports:
4335
- "6379:6379"
44-
4536
celery:
4637
container_name: celery
4738
build:
4839
context: .
4940
dockerfile: Dockerfile
50-
target : celery
41+
target: web
5142
volumes:
5243
- ./:/app/
5344
env_file:
5445
- ./secrets/ops_app_celery.env
55-
5646
depends_on:
5747
- db
5848
- redis
5949
- web
60-
50+
command: >
51+
bash -c "
52+
echo Starting celery;
53+
python3 -m celery -A BrowserStackAutomation worker -n worker1 -l DEBUG"
6154
test:
6255
container_name: test
6356
build:

docker-entrypoint-celery.sh

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

docker-entrypoint.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ tail -n 0 -f /ebs/logs/bstack.log &
1515
python scripts/clone_access_modules.py
1616
pip install -r Access/access_modules/requirements.txt --no-cache-dir --ignore-installed
1717

18-
19-
echo Starting Django runserver.
20-
python manage.py runserver 0.0.0.0:8000
18+
eval "$@"

0 commit comments

Comments
 (0)