Skip to content

Commit

Permalink
Merge pull request #37 from Georiviere/fix_docker_prod
Browse files Browse the repository at this point in the history
Clean docker install method
  • Loading branch information
submarcos authored Oct 13, 2023
2 parents 2e65c0e + cf38b9d commit 011019d
Show file tree
Hide file tree
Showing 20 changed files with 12 additions and 268 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ jobs:
uses: actions/checkout@v4
- name: Prepare install.zip
run: |
mkdir -p ./install/georiviere-public
cp .env.dist ./install/georiviere-public/.env
cp -r translations ./install/georiviere-public
cp -r src/customization ./install/georiviere-public
cp -r public/medias ./install/georiviere-public
cp ./install/docker-compose.yml ./install/georiviere-public
cp ./install/Dockerfile ./install/georiviere-public
cd install
mkdir georiviere-public
cp -r * ./georiviere-public 2>/dev/null || :
cp .env.dist ./georiviere-public
zip -r ../install.zip georiviere-public/
zip -r ../install.zip ./georiviere-public
- name: Attach zip archive as release binary
uses: skx/github-action-publish-binaries@master
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ install/.env
# typescript
*.tsbuildinfo
next-env.d.ts
/install/georiviere-public/
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ Follow those instructions in order to install the application on your server :
```bash
unzip install.zip
cd georiviere-public
cp .env.dist .env
```
2. Modify .env as needed and [change your customization](#customization)
2. Modify .env as needed and [change your customization](#customization) (take care it may be hidden by your file browser.)

3. Build your image
```bash
docker compose build
```
*Note : Whenever you need to change your translation or the .env. You have to rebuild the image.*
*Note : Whenever you need to change your translation. You have to rebuild the image.*

4. Launch the service :
```bash
Expand Down
2 changes: 0 additions & 2 deletions install/.env.dist

This file was deleted.

142 changes: 0 additions & 142 deletions install/customization/settings.json

This file was deleted.

Binary file removed install/medias/apple-touch-icon.png
Binary file not shown.
1 change: 0 additions & 1 deletion install/medias/facebook.svg

This file was deleted.

Binary file removed install/medias/favicon-16x16.png
Binary file not shown.
Binary file removed install/medias/favicon.png
Binary file not shown.
Binary file removed install/medias/home.jpg
Binary file not shown.
Binary file removed install/medias/illustration.jpg
Binary file not shown.
18 changes: 0 additions & 18 deletions install/medias/logo.svg

This file was deleted.

Binary file removed install/medias/placeholder.jpg
Binary file not shown.
Binary file removed install/medias/placeholder0.jpg
Binary file not shown.
Binary file removed install/medias/placeholder1.jpg
Binary file not shown.
Binary file removed install/medias/placeholder2.jpg
Binary file not shown.
Binary file removed install/medias/placeholder3.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion install/medias/youtube.svg

This file was deleted.

96 changes: 0 additions & 96 deletions install/translations/fr.json

This file was deleted.

2 changes: 1 addition & 1 deletion translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@
"light": "clair",
"dark": "sombre"
}
}
}

0 comments on commit 011019d

Please sign in to comment.