Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,31 @@ If you are looking to see how the internals of the deployment tool work or even

This project builds the hypernode/deploy container image.

## Building and running a local image

If you don't want to use a pre-built image from https://quay.io/hypernode/deploy or if you are doing development on this project and you want to test out your changes, you can built an image locally and use that.

```bash
export LOCAL_BUILD= # So we don't try to push
export CONTAINER_IMAGE=hypernode/deploy/dev
export PHP_VERSION=7.4
export NODE_VERSION=14
bash -x ci/build.sh
```

This will give you a locally built image:
```bash
$ docker images | grep hypernode/deploy/dev
hypernode/deploy/dev php7.4-node14 ece785ad21f5 2 minutes ago 753MB
```

That you could then use like:
```bash
$ rm -Rf vendor # in case we need to do some cleanup
$ docker run --rm -it --env SSH_PRIVATE_KEY="$(cat ~/.ssh/yourdeploykey | base64)" -v ${PWD}:/build hypernode/deploy/dev:php7.4-node14 hypernode-deploy build -vvv
$ docker run --rm -it --env SSH_PRIVATE_KEY="$(cat ~/.ssh/yourdeploykey | base64)" -v ${PWD}:/build hypernode/deploy/dev:php7.4-node14 hypernode-deploy deploy staging -vvv
```

## Switching node version

```bash
Expand All @@ -27,10 +52,3 @@ tools/vendor/bin/grumphp run --config tools/grumphp.yml

### Docker container
We use Google Container Structure Tests over https://github.com/aelsabbahy/goss because the Hipex deploy container does not require a health check.

## Run with local image

```bash
rm -Rf vendor
docker run --rm -it --env SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa_mydeploykey | base64)" -v ${PWD}:/build hipex/deploy/dev:2.1.0-php7.3-node13 hipex-deploy build -vvv
```