djarbz
5276e41606
Allow user Entrypoint scripts ( #5194 )
...
* Allow user Entrypoint scripts
* Variable encapsulation
Co-authored-by: Asher <ash@coder.com>
* Check if Entrypoint Dir exists & run all executable
* Don't create entrypoint.d by default
* yarn fmt
* yarn fmt
* Fix for SC2044
* Revert "yarn fmt"
This reverts commit 5ca347f36155ec731587c1ed8437bca332c76693.
Co-authored-by: Asher <ash@coder.com>
2022-05-11 22:10:04 +00:00
Devin Buhl
7a8d487729
chore: push code-server image to GHCR ( #5187 )
2022-05-10 16:11:06 -05:00
David Wahler
38e57a355b
Exclude .deb files from release Docker image ( #5068 )
2022-04-06 15:45:06 -07:00
Lorenz Brun
102478bdea
fix: ensure dumb-init is PID 1 ( #4846 )
...
Exec to dumb-init in entrypoint script, so that it can
handle signals and reap subprocesses.
2022-02-11 11:44:01 -08:00
hyk
5960a6728c
support git-lfs default ( #4611 )
...
Co-authored-by: Joe Previte <jjprevite@gmail.com>
2021-12-14 16:08:25 -07:00
Asher
7a735014bb
Push latest Docker tag along with version tag ( #4120 )
2021-09-08 15:00:34 -05:00
Renovate Bot
234b8ade59
chore(deps): update debian docker tag to v11
2021-08-17 03:11:47 +00:00
Akash Satheesan
93c89ba0e8
fix(ci): build+push image in release flow ( #3838 )
2021-07-29 23:31:46 +05:30
dependabot[bot]
9042bbae9a
chore(deps-dev): bump prettier-plugin-sh from 0.6.1 to 0.7.1 ( #3680 )
...
* chore(deps-dev): bump prettier-plugin-sh from 0.6.1 to 0.7.1
Bumps [prettier-plugin-sh](https://github.com/rx-ts/prettier ) from 0.6.1 to 0.7.1.
- [Release notes](https://github.com/rx-ts/prettier/releases )
- [Changelog](https://github.com/rx-ts/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rx-ts/prettier/compare/prettier-plugin-sh@0.6.1...prettier-plugin-sh@0.7.1 )
---
updated-dependencies:
- dependency-name: prettier-plugin-sh
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: reformat shell scripts
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akash Satheesan <akash.satheesan@protonmail.com>
2021-06-28 22:06:55 +05:30
Akash Satheesan
1ccf69f731
chore: cross-compile docker images with buildx ( #3503 )
2021-05-28 16:51:41 +00:00
videlanicolas
3df771fbc4
Check the logged user instead of $USER ( #3330 )
...
* Check the logged user instead of $USER
Given that `sudo usermod --login "$DOCKER_USER" coder` and `sudo groupmod -n "$DOCKER_USER" coder` modify the container's disk it'll persist across restarts, but environment variables will be reset to whatever state they had at the end of `Dockerfile`. In this case, `$USER` is set to `coder`, so this branch will always be true.
By checking with the output of `whoami`, which gets it's information from `/etc/passwd`, we make sure to get the real logged user and not the one defined by $USER.
We also move `USER="$DOCKER_USER"` out of the branch, since we always want this to happen at entry-point. If we don't do this assignment, $USER will contain `coder` upon restart.
* Update entrypoint.sh
Check `$DOCKER_USER` was defined before copying it to `$USER`.
2021-05-11 10:26:38 -05:00
Justin Keller
58b59fde5f
Update fixuid 0.5 and add zsh to Docker image ( #2925 )
2021-03-22 16:15:06 -05:00
Joe Previte
d05389880a
chore: update formatting w/new prettier sh plugin
2021-03-15 15:36:31 -07:00
Jean-Yves LENHOF
0f2085bd27
release-image: Use more minimal packages #2462
2020-12-18 13:01:59 -05:00
Anmol Sethi
7e05ca09bb
release-image: Remove unnecessary call to chsh ( #2457 )
...
Confused me in #2410 , see #2455
debian:10 defaults to bash as $SHELL
2020-12-14 16:22:24 -05:00
Anmol Sethi
32c5ed8a33
release-image: Ignore $DOCKER_USER on restart ( #2458 )
...
Closes #2267
2020-12-14 13:57:36 -05:00
Anmol Sethi
79443c14ff
release-image: Remap UID within the image before handling $DOCKER_USER ( #2223 )
...
If do not update the UID within the passwd database to match whatever
uid the container is being ran as, then sudo will not work when renaming
the user to match $DOCKER_USER as it will complain about the current
user being non-existent.
2020-10-23 12:07:08 -04:00
Anmol Sethi
4a3d2e5a94
Remove unnecessary whoami
...
Closes #2213
2020-10-21 16:40:25 -04:00
Anmol Sethi
ea105a9290
Fix release image entrypoint.sh
2020-10-12 04:26:36 -04:00
Anmol Sethi
eacca7d692
Unrelated fixes for CI
2020-10-07 15:58:30 -04:00
Anmol Sethi
9fb318cf15
docker: Fix $DOCKER_USER ( #2057 )
...
We do not try renaming $HOME anymore as there is no good way
to do it.
We also only try to convert if the user hasn't been changed.
Finally I added usage to the docker docs in install.md
Closes #2056
2020-09-03 18:38:40 -04:00
Anmol Sethi
4c4a7413a1
docker: Allow passing $DOCKER_USER to set the username in the container
...
Needs to be reflected in the documentation and the dockerhub description now.
Closes #881
2020-08-27 14:20:56 -04:00
Anmol Sethi
bdb670e852
Rename container and release-container to images and release-image
2020-06-03 15:45:16 -04:00
Anmol Sethi
be032cf735
Add NPM package, debs, rpms and refactor CI/build process
...
Closes many issues that I'll prune after adding more docs
for users.
2020-05-06 20:25:52 -04:00
Anmol Sethi
af28885ea6
Deprecate --host and --port in favour of --bind-addr
2020-04-28 14:19:24 -04:00
Sandro Jäckel
9b07078b47
Combine two RUNs
2020-03-07 00:06:42 +01:00
Sandro Jäckel
8433a3d081
Combine all apt-get commands to really delete the cache from all layers
2020-03-07 00:00:58 +01:00
Asher
744327ffd4
Update release dockerfile to use a symlink
2020-03-04 16:02:25 -06:00
Asher
c870398c86
Switch to loose files
...
For #1306 .
2020-02-25 18:23:35 -06:00
Anmol Sethi
815dc06118
Use npm rebuild instead of yarn --no-scripts in vscode.sh
2020-02-20 19:11:01 -05:00
Anmol Sethi
9f3240346c
Doc fixes
2020-02-19 00:27:02 -05:00
Anmol Sethi
a065c12e83
CI Fixes
2020-02-18 23:31:40 -05:00
Anmol Sethi
5681c87e33
Fix bugs in CI
2020-02-18 19:06:35 -05:00
Anmol Sethi
1a91588c42
Add docker image pushing
2020-02-18 13:28:13 -05:00
Anmol Sethi
0d31a51eeb
Add github release creation
2020-02-15 16:20:41 -05:00