|
1 | | -# coder-templates: Templates to aid development with Noelware's Charts Platform with Coder (https://coder.com) |
2 | | -# Copyright (c) 2022 Noelware <team@noelware.org> |
3 | | -# |
4 | | -# Permission is hereby granted, free of charge, to any person obtaining a copy |
5 | | -# of this software and associated documentation files (the "Software"), to deal |
6 | | -# in the Software without restriction, including without limitation the rights |
7 | | -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
8 | | -# copies of the Software, and to permit persons to whom the Software is |
9 | | -# furnished to do so, subject to the following conditions: |
10 | | -# |
11 | | -# The above copyright notice and this permission notice shall be included in all |
12 | | -# copies or substantial portions of the Software. |
13 | | -# |
14 | | -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
15 | | -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
16 | | -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
17 | | -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
18 | | -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
19 | | -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
20 | | -# SOFTWARE. |
21 | | - |
22 | | -# We only need this since charted-server requires a Go installation, so... yeah! |
23 | 1 | FROM ghcr.io/auguwu/coder-images/java |
24 | 2 |
|
| 3 | +ENV USERNAME=noel |
| 4 | + |
| 5 | +# go into root, we need to install some stuff (like Docker) |
| 6 | +USER root |
| 7 | + |
| 8 | +ENV DEBIAN_FRONTEND=noninteractive |
| 9 | +RUN apt update && apt upgrade -y && apt install -y postgresql-client redis-tools |
| 10 | + |
| 11 | +# go back to noel user |
| 12 | +USER ${USERNAME} |
| 13 | + |
| 14 | +# Add the Go toolchain here so we can develop the ClickHouse Migrations code |
25 | 15 | COPY --from=ghcr.io/auguwu/coder-images/golang /opt/golang/tools/golangci /opt/golang/tools/golangci |
26 | 16 | COPY --from=ghcr.io/auguwu/coder-images/golang /opt/golang/go /opt/golang/go |
27 | 17 |
|
28 | | -ENV PATH=$PATH:/opt/golang/go/bin:/opt/golang/tools/golangci |
| 18 | +# Add the Rust toochain so we can develop the Helm Plugin |
| 19 | +COPY --from=ghcr.io/auguwu/coder-images/rust --chown=${USERNAME}:${USERNAME} /home/${USERNAME}/.rustup /home/${USERNAME}/.rustup |
| 20 | +COPY --from=ghcr.io/auguwu/coder-images/rust --chown=${USERNAME}:${USERNAME} /home/${USERNAME}/.cargo /home/${USERNAME}/.cargo |
| 21 | + |
| 22 | +# node |
| 23 | +COPY --from=ghcr.io/auguwu/coder-images/node /opt/nodejs /opt/nodejs |
| 24 | + |
| 25 | +# Go back to the user |
| 26 | +USER ${USERNAME} |
| 27 | + |
| 28 | +ENV LANG="en-US.UTF-8" |
| 29 | +ENV PATH=$PATH:/opt/golang/go/bin:/opt/golang/tools/golangci:/opt/nodejs/bin:/home/${USERNAME}/.cargo/bin |
0 commit comments