-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,4 @@ services: | |
image: memcached:latest | ||
ports: | ||
- '11211:11211' | ||
restart: always | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
FROM node:12 AS builder | ||
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list | ||
RUN sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list | ||
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list | ||
RUN apt-get update && apt-get -y install apt-transport-https | ||
RUN apt-get update && \ | ||
apt-get install -y git | ||
WORKDIR /app | ||
ENV GITSHA=951039f86938b9cc9d8b6986c4e5f3423a78e4d3 | ||
RUN git clone https://github.com/hotosm/tasking-manager.git /app | ||
WORKDIR /app/frontend | ||
RUN git checkout $GITSHA | ||
RUN npm install && npm run build | ||
|
||
FROM nginx:latest | ||
COPY --from=builder /app/frontend/build /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Docker setup for Tasking Manager 4 API | ||
|
||
### Configuration | ||
1. Copy `./envs/.env.tasking-manager.example` to `./envs/.env.tasking-manager` | ||
2. This setup doesn't come with a database container, so you'd have to standup your own. For now. | ||
3. Supply appropirate environment variables, particularly OAuth keys and database credentials | ||
|
||
|
||
### Build and run | ||
* `cd tasking-manager-api` | ||
* `docker build -t osmseed-tasking-manager-api:v1 .` | ||
* `docker run --env-file ../.env-tasking-manager -p "5000:5000" -t osmseed-tasking-manager-api:v1` | ||
|