Skip to content

Commit f979f3b

Browse files
committed
Update Docker config for new architecture
1 parent a349d81 commit f979f3b

File tree

3 files changed

+7
-63
lines changed

3 files changed

+7
-63
lines changed

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ FROM ubuntu:16.04
22

33
RUN apt-get update && \
44
apt-get install -y software-properties-common && \
5-
add-apt-repository ppa:fkrull/deadsnakes && \
65
apt-get update && \
76
apt-get -y upgrade && \
8-
apt-get install -y python3.5 python3-venv libpq-dev libhdf5-serial-dev \
9-
libnetcdf-dev supervisor libpython3-dev supervisor \
10-
nginx npm nodejs && \
7+
apt-get install -y python3-venv libpq-dev supervisor libpython3-dev \
8+
git nginx npm nodejs && \
119
apt-get clean && \
1210
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
1311
useradd --create-home --shell /bin/bash cesium
1412

15-
RUN python3.5 -m venv /cesium_env && \
13+
RUN python3 -m venv /cesium_env && \
1614
\
1715
bash -c "source /cesium_env/bin/activate && \
1816
pip install --upgrade pip && \
1917
pip install --upgrade pip"
2018

21-
ENV PIP_FIND_LINKS http://wheels.scikit-image.org
2219
ADD . /cesium
2320
WORKDIR /cesium
2421

22+
ENV LC_ALL=C.UTF-8
23+
ENV LANG=C.UTF-8
24+
2525
RUN bash -c "source /cesium_env/bin/activate && \
26+
ln -s /usr/bin/nodejs /usr/bin/node && \
2627
make paths && \
2728
make dependencies && \
2829
cp docker/cesium-docker.yaml . && \
29-
ln -s /usr/bin/nodejs /usr/bin/node && \
3030
chown -R cesium.cesium /cesium_env && \
3131
chown -R cesium.cesium /cesium"
3232

@@ -38,4 +38,3 @@ CMD bash -c "source /cesium_env/bin/activate && \
3838
(make log &) && \
3939
PYTHONPATH=. python -c \"from cesium_app.models import create_tables as c; c()\" && \
4040
make run"
41-

cesium.yaml.example

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,6 @@ app:
33
# characters. Typically ``os.urandom(24)`` is
44
# good enough.
55

6-
authentication:
7-
# The Stormpath API keys can be downloaded from:
8-
# https://api.stormpath.com
9-
10-
stormpath_api_key_id: 01234
11-
stormpath_api_key_secret: 0124
12-
stormpath_application: cesium
13-
14-
## This section is optional. If not filled in, Google Authentication
15-
## will be disabled.
16-
##
17-
## These values can be obtained from
18-
## https://console.developers.google.com/project
19-
##
20-
## When filling in the form for running on localhost:
21-
##
22-
## - Appliation type: Web
23-
## - Authorized JavaScript origins: blank
24-
## - Authorized redirect URIs: http://localhost:5000/google
25-
## http://your.hosted.server.com
26-
##
27-
## Always include the localhost:5000 for unit testing purposes.
28-
29-
google_client_id:
30-
google_client_secret:
31-
326
paths:
337
# Note below that defined variables can be reused in subsequent
348
# definitions.
@@ -51,20 +25,5 @@ database:
5125
user: cesium
5226
password:
5327

54-
docker:
55-
enabled: 0
56-
5728
server:
5829
url: http://localhost:5000
59-
60-
xr_engine: netcdf4
61-
##xr_engine: h5netcdf
62-
63-
## testing:
64-
## ## Disable authentication
65-
## disable_auth: 1
66-
##
67-
## ## Use a separate test database
68-
## test_db: 1
69-
##
70-
## debug: 0

docker-compose/docker-compose.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,12 @@ web:
44
- "9000:5000"
55
links:
66
- db
7-
- rabbit
87
volumes:
98
- .:/home/cesium_app
10-
environment:
11-
- CELERY_BROKER=amqp://guest:guest@rabbit:5672//
12-
# depends_on:
13-
# - db
14-
# - rabbit
159

1610
db:
1711
image: cesium/postgres
18-
# volumes:
19-
# - ./_postgres_data:/var/lib/postgresql/data/
2012
environment:
2113
- POSTGRES_USER=cesium
2214
- POSTGRES_PASSWORD=
2315
- POSTGRES_DB=cesium
24-
# - PGDATA=/var/lib/postgresql/data/pgdata
25-
26-
rabbit:
27-
image: rabbitmq:3
28-
ports:
29-
- "5672:5672"

0 commit comments

Comments
 (0)