Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 8c3364e

Browse files
committed
Move to a Dockerfile-only project
1 parent 5515c19 commit 8c3364e

8 files changed

Lines changed: 32 additions & 336 deletions

File tree

.github/workflows/release.yaml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
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-
name: Release Docker image version
1+
name: Release Docker image
232
on:
243
release:
254
types: [released]
@@ -41,8 +20,9 @@ jobs:
4120
- name: Login into GitHub Container Registry
4221
uses: docker/login-action@v2
4322
with:
44-
username: auguwu
45-
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
23+
registry: registry.floofy.dev
24+
username: august
25+
password: ${{ secrets.DOCKER_PASSWORD }}
4626

4727
- name: Build and push
4828
uses: docker/build-push-action@v3
@@ -51,4 +31,4 @@ jobs:
5131
file: ./Dockerfile
5232
platforms: linux/amd64
5333
push: true
54-
tags: auguwu/charted-coder:${{steps.tag.outputs.version}}
34+
tags: registry.floofy.dev/charted/devcontainer:${{steps.tag.outputs.version}}

.terraform.lock.hcl

Lines changed: 0 additions & 45 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

Dockerfile

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
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!
231
FROM ghcr.io/auguwu/coder-images/java
242

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
2515
COPY --from=ghcr.io/auguwu/coder-images/golang /opt/golang/tools/golangci /opt/golang/tools/golangci
2616
COPY --from=ghcr.io/auguwu/coder-images/golang /opt/golang/go /opt/golang/go
2717

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

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Coder Templates for Noelware's Charts Platform
2-
> *Templates to aid development with Noelware's Charts Platform with [Coder](https://coder.com)*
3-
4-
This repository is meant to provide templates to help aid development of [charted-server](https://charts.noelware.org) on Coder, which [Noel](https://floofy.dev) uses for remote development.
5-
6-
## Auto-import template
7-
```sh
8-
$ git clone https://github.com/charted-dev/coder-templates && cd coder-templates
9-
$ coder template create charted-server --url=<coder deployment url>
10-
```
11-
12-
## License
13-
**coder-templates** is released under the **MIT License** with love by Noelware. <3
1+
# charted-server's devcontainer
2+
This holds the repository for the Development Container for working with **charted-server**. It's a joined image that includes Node.js, Rust, Go,
3+
and Java.

main.tf

Lines changed: 0 additions & 144 deletions
This file was deleted.

variables.tf

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)