Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`