Add notes about using tokens, etc

Also improve user experience: cd to home
This commit is contained in:
Chris (wolcen) Thompson 2024-03-26 18:11:12 -04:00
parent d2c8279d88
commit e62e14e1b8
2 changed files with 4 additions and 1 deletions

View file

@ -18,6 +18,7 @@ ARG gid=1000
RUN groupadd -g ${gid} ${group} RUN groupadd -g ${gid} ${group}
RUN useradd -u ${uid} -g ${group} -s /bin/sh -m ${user} RUN useradd -u ${uid} -g ${group} -s /bin/sh -m ${user}
USER ${uid}:${gid} USER ${uid}:${gid}
WORKDIR /home/deployer
RUN mkdir ~/.ssh RUN mkdir ~/.ssh
RUN touch ~/.ssh/config RUN touch ~/.ssh/config
RUN chmod 700 ~/.ssh RUN chmod 700 ~/.ssh

View file

@ -6,7 +6,7 @@ It is based on the PHP image, adding node, composer, and a few other items we ne
Given node is included, most forgejo/actions *should* work, but some may have other dependencies. Given node is included, most forgejo/actions *should* work, but some may have other dependencies.
To do a build/push to our container registry, first create a token at https://git.agaric.com/user/settings and login using your user name and that token with: To do a build/push to our container registry, first create a token at https://git.agaric.com/user/settings/applications. Grant the token read/write access to the "package" option. Use this token along with your user name to login with:
`docker login git.agaric.com` `docker login git.agaric.com`
Then, run: Then, run:
@ -17,3 +17,5 @@ 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. 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.