diff --git a/Dockerfile b/Dockerfile index 2785209..b71ce51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index e9bad0f..74f538b 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,12 @@ To do a build/push to our container registry, first create a token at https://gi Then, run: ``` # finish commits and testing -git tag "0.0.X" -docker build -t git.agaric.com/agaric/deploycontainer:0.0.X -docker tag git.agaric.com/agaric/deploycontainer:0.0.X git.agaric.com/agaric/deploycontainer:latest +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:${TAG} 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.