Skip to content

Commit a1058ad

Browse files
authored
Merge pull request #102 from ByteInternet/remove_old_build_scripts
2 parents 02bb80e + 2f265f2 commit a1058ad

13 files changed

+15
-538
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.releaserc

Lines changed: 0 additions & 28 deletions
This file was deleted.

README.md

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,33 @@ If you want to use Hypernode Deploy in your shop you will probably want to head
66

77
If you are looking to see how the internals of the deployment tool work or even want to contribute a change to the project yourself, then you're in the right place.
88

9-
This project builds the hypernode/deploy container image.
9+
This project builds the `hypernode/deploy` container image, which can be found on [quay.io/hypernode/deploy](https://quay.io/hypernode/deploy).
1010

1111
## Building and running a local image
1212

1313
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.
1414

1515
```bash
16-
export LOCAL_BUILD= # So we don't try to push
17-
export CONTAINER_IMAGE=hypernode/deploy/dev
18-
export PHP_VERSION=7.4
19-
export NODE_VERSION=14
20-
bash -x ci/build.sh
16+
export DOCKER_TAG=hypernode_deploy_dev:latest
17+
export PHP_VERSION=8.2
18+
export NODE_VERSION=18
19+
docker build -t "$DOCKER_TAG" -f "./ci/build/Dockerfile" \
20+
--build-arg PHP_VERSION=$PHP_VERSION \
21+
--build-arg NODE_VERSION=$NODE_VERSION \
22+
.
2123
```
2224

2325
This will give you a locally built image:
24-
```bash
25-
$ docker images | grep hypernode/deploy/dev
26-
hypernode/deploy/dev php7.4-node14 ece785ad21f5 2 minutes ago 753MB
26+
```console
27+
$ docker images | grep hypernode_deploy_dev
28+
localhost/hypernode_deploy_dev latest 5280aaef3a82 52 seconds ago 842 MB
2729
```
2830

2931
That you could then use like:
30-
```bash
31-
$ rm -Rf vendor # in case we need to do some cleanup
32-
$ 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
33-
$ 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
34-
```
35-
36-
## Switching node version
37-
38-
```bash
39-
source /etc/profile.d/nvm.sh
40-
nvm install -s stable
32+
```console
33+
$ rm -Rf vendor
34+
$ docker run --rm -it --env SSH_PRIVATE_KEY="$(cat ~/.ssh/yourdeploykey | base64)" -v ${PWD}:/build hypernode_deploy_dev:latest hypernode-deploy build -vvv
35+
$ docker run --rm -it --env SSH_PRIVATE_KEY="$(cat ~/.ssh/yourdeploykey | base64)" -v ${PWD}:/build hypernode_deploy_dev:latest hypernode-deploy deploy staging -vvv
4136
```
4237

4338
## Tests
@@ -49,6 +44,3 @@ To run the static tests, please run the following commands:
4944
composer --working-dir tools install
5045
tools/vendor/bin/grumphp run --config tools/grumphp.yml
5146
```
52-
53-
### Docker container
54-
We use Google Container Structure Tests over https://github.com/aelsabbahy/goss because the Hipex deploy container does not require a health check.

ci/build.sh

Lines changed: 0 additions & 38 deletions
This file was deleted.

ci/container-structure-test.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

ci/publish.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

ci/test.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

gitlab/.gitlab-ci-build.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)