Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sudo-bot/gh-deployer-container
The container for gh-deployer
https://github.com/sudo-bot/gh-deployer-container
deployer docker-image sudo-bot
Last synced: 8 days ago
JSON representation
The container for gh-deployer
- Host: GitHub
- URL: https://github.com/sudo-bot/gh-deployer-container
- Owner: sudo-bot
- License: mpl-2.0
- Created: 2021-04-15T19:46:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T05:16:08.000Z (7 months ago)
- Last Synced: 2024-07-05T16:38:13.797Z (7 months ago)
- Topics: deployer, docker-image, sudo-bot
- Language: PHP
- Homepage: https://github.com/sudo-bot/gh-deployer
- Size: 90.8 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-deployer-container
The container for gh-deployer
/!\ This is designed to deploy phpMyAdmin instances, improve it if you want.
## manual use of the phpMyAdmin container
You can also specify:
- a memory limit `-e MEMORY_LIMIT=128M`
- a SHA `-e GIT_SHA=8669c00fff7c08ac58917e3fcc7f87e28f2052c5`
- a network `--network mynetwork` (see: `docker network ls`)
- a config `-e PMA_CONFIG="$(cat config.inc.php | base64 -w0)"` (if not provided the one built into the container will be used)(RANDOM_STRING is just for phpMyAdmin config `blowfish_secret`)
You will need to login with to the container registry (`docker login ghcr.io`). You can provide a PAT as a password, scopes: `read:registry`.
```sh
docker run --rm --name myDeployedContainer1 \
-p 8085:80 \
-e GIT_URL=https://github.com/iifawzi/phpmyadmin.git \
-e GIT_BRANCH=designer-rtl-support \
-e RANDOM_STRING=d4a5c8571aff3df8965e7086fd500a88b64c41411d9 \
ghcr.io/sudo-bot/gh-deployer-container/phpmyadmin
```### Skip deploy and use your workspace folder
NB: you need to keep the user root to make nginx bind port work
```sh
docker run --rm --name myStaticContainer1 \
--user "0:$(id -g)" \
-p 8085:80 \
-v $PWD:/home/www/phpMyAdmin \
-e SKIP_DEPLOY=yes \
-e MEMORY_LIMIT=128M \
ghcr.io/sudo-bot/gh-deployer-container/phpmyadmin
```### Stop the container
If you use `-it` you will be able to kill the container with a CTRL-C
/!\ This will auto destroy the containers contents (`--rm`)
Run: `docker stop myDeployedContainer1`