Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5fbf28df5 | ||
|
|
42b2ec65b9 | ||
|
|
ff1ffcbed0 |
2 changed files with 8 additions and 7 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"]
|
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 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 "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 composer-setup.php
|
||||||
RUN php -r "unlink('composer-setup.php');"
|
RUN php -r "unlink('composer-setup.php');"
|
||||||
RUN mv composer.phar /usr/local/bin/composer
|
RUN mv composer.phar /usr/local/bin/composer
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,12 @@ To do a build/push to our container registry, first create a token at https://gi
|
||||||
Then, run:
|
Then, run:
|
||||||
```
|
```
|
||||||
# finish commits and testing
|
# finish commits and testing
|
||||||
git tag "0.0.X"
|
export TAG="0.0.X"
|
||||||
docker build -t git.agaric.com/agaric/deploycontainer:0.0.X
|
git tag "${TAG}"
|
||||||
docker tag git.agaric.com/agaric/deploycontainer:0.0.X git.agaric.com/agaric/deploycontainer:latest
|
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:${TAG}
|
||||||
docker push git.agaric.com/agaric/deploycontainer:latest
|
docker push git.agaric.com/agaric/deploycontainer:latest
|
||||||
```
|
```
|
||||||
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.
|
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