Archived
1
0
Commit Graph

42 Commits

Author SHA1 Message Date
Dmitry Sharshakov
45164bf749
Use rpm to install in Fedora image (#6670)
Dnf will pull caches if invoked for local file install and is also unnecessary
2024-02-09 12:56:57 -09:00
Dmitry Sharshakov
a2d35ad815
docker: add Fedora 39 and openSUSE Tumbleweed based images (#6669) 2024-02-08 12:31:50 -09:00
Dov Benyomin Sohacheski
d6c5a4af9c
Add Debian bookworm config to bakefile (#6590) 2023-12-18 21:30:16 +00:00
Dov Benyomin Sohacheski
d9fe46a6be
Update and organize release image packages, add wget (#6581) 2023-12-15 20:32:14 +00:00
Dov Benyomin Sohacheski
7649b6e6ca
Update base release image to Debian:12 (#6574) 2023-12-12 11:37:17 -09:00
Wei HU
bbf18cc6b0
feat: add docker image release for Ubuntu based image (#5688) 2022-10-24 18:41:19 +00:00
Joe Previte
71a127a62b
refactor: update prettier and doctoc (#5605)
* docs: add toc to CODE OF CONDUCT

* chore: add prettier ignore blocks to docs

* chore: update styles for Dockerfile

* refactor: separate prettier, doctoc

This does a couple things:
- update `.prettierignore`
- split `prettier` and `doctoc` commands. you can still run with `yarn
  fmt`
- delete `fmt.sh` and add `doctoc.sh`

By doing so, we can run tasks in parallel in CI and we should also have
less false positives than before with `yarn fmt` locally.

* refactor: update prettier job, add doctoc

This modifies the prettier job to use actionsx/prettier. It also adds a
job for `doctoc`.

* chore: upgrade to prettier 2.7.1

* chore: pin doctoc to 2.0.0

* fixup!: add .pc to prettierignore

* feat: add --cache to prettier cmd
2022-10-13 22:16:55 +00:00
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 5ca347f361.

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