Skip to content

Commit cefaf19

Browse files
committed
add docker
1 parent a2ad00c commit cefaf19

8 files changed

+37
-0
lines changed

.dockerignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.cache/
2+
node_modules/
3+
public/
4+
**/node_modules
5+
**/public
6+
**/.cache/

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM node:13-buster-slim
2+
RUN yarn global add gatsby-cli
3+
WORKDIR /app
4+
COPY . ./
5+
RUN yarn --pure-lockfile
6+
RUN chmod +x seed_dummy_data.sh
7+
RUN ./seed_dummy_data.sh

docker-compose.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: "3.3"
2+
services:
3+
cohend:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
command: yarn workspace gatsby-theme-rpsych-cohend gatsby develop -H 0.0.0.0
8+
ports:
9+
- "8000:8000"
10+
volumes:
11+
- .:/app
12+
- /app/node_modules

docs/translation.md

+8
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ If you are unfamiliar with git then you can download the files, add your transla
7575
## Preview your translations
7676
If you don't want to/don't know how to preview the site locally, then just ask me to send you a preview link after you've added your translation.
7777

78+
The easiest way to start a local development copy is to use `docker-compose`:
79+
80+
```
81+
docker-compose build
82+
docker-compose run
83+
```
84+
Then you can view the page at `http://localhost:8000/cohend`
85+
7886
## Attribution
7987
The translation will be attributed to you on the translated page, e.g. "translated by Your Name". I can link to your webpage and/or Twitter if you'd like.
8088

6.59 KB
Binary file not shown.
271 Bytes
Binary file not shown.
64.6 KB
Binary file not shown.

seed_dummy_data.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
tar -xzvf gatsby-theme-rpsych/assets/profile.tar.gz
3+
tar -xzvf gatsby-theme-rpsych/assets/Posters.tar.gz
4+
tar -xzvf gatsby-theme-rpsych/assets/coffee-supporters.tar.gz

0 commit comments

Comments
 (0)