Compare commits
3 commits
7a5e1de241
...
42b2ec65b9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42b2ec65b9 | ||
|
|
ff1ffcbed0 | ||
|
|
0d127aa52f |
2 changed files with 9 additions and 6 deletions
|
|
@ -1,10 +1,10 @@
|
|||
FROM php:8.1
|
||||
FROM php:8.3
|
||||
|
||||
ARG NODE_VER=20.11.1
|
||||
ARG NODE_VER=20.19.5
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
RUN curl https://nodejs.org/dist/v$NODE_VER/node-v$NODE_VER-linux-x64.tar.xz | tar --file=- --extract --xz --directory /usr/local/ --strip-components=1
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'ed0feb545ba87161262f2d45a633e34f591ebb3381f2e0063c345ebea4d228dd0043083717770234ec00c5a9f9593792') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||
RUN php composer-setup.php
|
||||
RUN php -r "unlink('composer-setup.php');"
|
||||
RUN mv composer.phar /usr/local/bin/composer
|
||||
|
|
|
|||
|
|
@ -11,10 +11,13 @@ To do a build/push to our container registry, first create a token at https://gi
|
|||
|
||||
Then, run:
|
||||
```
|
||||
docker build -t git.agaric.com/agaric/deploycontainer:latest .
|
||||
# finish commits and testing
|
||||
export TAG="0.0.X"
|
||||
git tag "${TAG}"
|
||||
docker build -t git.agaric.com/agaric/deploycontainer:${TAG} .
|
||||
docker tag git.agaric.com/agaric/deploycontainer:${TAG} git.agaric.com/agaric/deploycontainer:latest
|
||||
docker push git.agaric.com/agaric/deploycontainer:latest
|
||||
```
|
||||
|
||||
No, this is not best practice - the latest should only point to latest, and there should be a semver in use.
|
||||
Need to verify pushing latest also includes the version...not sure
|
||||
|
||||
If you need a token for git access to git.drupalcode.org, go to https://git.drupalcode.org/-/user_settings/personal_access_tokens and grant the token api_read access. The token can be tested (i.e. inside a deploycontainer - `docker run -v .:/home/deployer -it agaric/deploycontainer:latest`) with `composer config -g gitlab-token.git.drupalcode.org {your token}` and then running composer install.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue