Compare commits

...

3 commits

Author SHA1 Message Date
Chris (wolcen) Thompson
42b2ec65b9 Improve (ahem, correct) documentation 2025-10-07 22:19:45 -04:00
Chris (wolcen) Thompson
ff1ffcbed0 Update php, node, composer 2025-10-07 22:19:31 -04:00
Chris (wolcen) Thompson
0d127aa52f Add some versioning stuff to docs 2025-10-07 22:07:39 -04:00
2 changed files with 9 additions and 6 deletions

View file

@ -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

View file

@ -11,10 +11,13 @@ To do a build/push to our container registry, first create a token at https://gi
Then, run: 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 docker push git.agaric.com/agaric/deploycontainer:latest
``` ```
Need to verify pushing latest also includes the version...not sure
No, this is not best practice - the latest should only point to latest, and there should be a semver in use.
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.