-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-container-image
* main: chore: Update repo config (#9) chore: Updating repo config (#8) devcontainer: Updating devcontainer config (#7) chore: Moving to anselmes/devos (#6)
- Loading branch information
Showing
25 changed files
with
262 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "DevOS", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
// "image": "mcr.microsoft.com/devcontainers/base:dev-ubuntu", | ||
// "build": {"dockerfile": "${localWorkspaceFolder}/build/package/Dockerfile"}, | ||
"dockerComposeFile": [ | ||
"${localWorkspaceFolder}/compose-dev.yaml" | ||
], | ||
"dockerComposeFile": ["${localWorkspaceFolder}/compose-dev.yaml"], | ||
"service": "devos", | ||
"workspaceFolder": "/workspace", | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"workspaceFolder": "/home/devos/workspace", | ||
"postCreateCommand": "${containerWorkspaceFolder}/scripts/config-devos.sh", | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
"remoteUser": "devos" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Bot | ||
name: Bot Workflow | ||
|
||
on: | ||
- workflow_call | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.github/workflows/ondemand/cleanup.yml → .github/workflows/cleanup.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Cleanup | ||
name: Cleanup OnDemand | ||
|
||
on: | ||
pull_request: | ||
|
8 changes: 5 additions & 3 deletions
8
.github/workflows/gate/devos.yml → .github/workflows/devos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
name: DevOS | ||
name: DevOS Gate | ||
|
||
on: | ||
- workflow_call | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
airskiff: | ||
devos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- run: hack/run | ||
# - run: | | ||
# cd hack | ||
# ./run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
plugins | ||
user_trunk.yaml | ||
user.yaml | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,18 +19,18 @@ runtimes: | |
lint: | ||
enabled: | ||
- [email protected] | ||
- [email protected].0 | ||
- [email protected].1 | ||
- [email protected] | ||
- trivy@0.55.2 | ||
- trivy@0.56.1 | ||
- [email protected] | ||
- [email protected].256 | ||
- [email protected].257 | ||
- git-diff-check | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected].6 | ||
- [email protected].7 | ||
- [email protected] | ||
actions: | ||
disabled: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM ubuntu:24.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV X11VNC_SKIP_DISPLAY=="" | ||
|
||
COPY config/systemd/journal-to-tty.service /lib/systemd/system/journal-to-tty.service | ||
RUN apt-get update -y && \ | ||
apt-get install --no-install-recommends -y \ | ||
ca-certificates \ | ||
cron \ | ||
curl \ | ||
dbus \ | ||
file \ | ||
iproute2 \ | ||
libvirt-daemon \ | ||
libvirt-daemon-system \ | ||
openssl \ | ||
software-properties-common \ | ||
ssh \ | ||
systemd && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# todo: checksum downloaded binaries | ||
# COPY scripts/init-devos.sh /tmp/init-devos.sh | ||
# COPY scripts/install-docker.sh /tmp/install-docker.sh | ||
# RUN chmod +x \ | ||
# /tmp/init-devos.sh \ | ||
# /tmp/install-docker.sh && \ | ||
# /tmp/init-devos.sh && \ | ||
# echo "devos ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/devos && \ | ||
# systemctl enable journal-to-tty.service && \ | ||
# useradd -m devos | ||
|
||
CMD ["/sbin/init"] | ||
USER devos | ||
HEALTHCHECK NONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
--- | ||
services: | ||
devos: | ||
image: ubuntu:22.04 | ||
image: ghcr.io/anselmes/devos:main | ||
# platform: linux/amd64 | ||
# entrypoint: /sbin/init | ||
# privileged: true | ||
# network_mode: host | ||
privileged: true | ||
stdin_open: true | ||
tty: true | ||
working_dir: /root/workspace | ||
env_file: | ||
- .env | ||
user: root # note: required for /sbin/init | ||
working_dir: /home/devos/workspace | ||
# env_file: | ||
# - .env | ||
volumes: | ||
- .:/root/workspace | ||
- ~/.gitconfig:/root/.gitconfig:ro | ||
- ~/.gnupg:/root/.gnupg # fixme: investigate mounting as read-only | ||
- ~/.ssh:/root/.ssh:ro | ||
- ~/.zshrc:/root/.zshrc:ro | ||
- .:/home/devos/workspace | ||
- /sys/fs/cgroup:/sys/fs/cgroup:rw | ||
- /var/lib/libvirt:/var/lib/libvirt | ||
- ~/.gitconfig:/home/devos/.gitconfig:ro | ||
- ~/.gnupg:/home/devos/.gnupg:ro | ||
- ~/.ssh:/home/devos/.ssh:ro | ||
- ~/.zshrc:/home/devos/.zshrc:ro | ||
ports: | ||
- 10022:22 | ||
- 10080:80 | ||
- 10443:443 | ||
- 15900:5900 | ||
- 16443:6443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Journald console log streamer | ||
Requires=systemd-journald.service | ||
After=systemd-journald.service | ||
|
||
[Service] | ||
Restart=always | ||
RestartSec=0 | ||
ExecStart=/bin/journalctl -f | ||
StandardOutput=tty | ||
|
||
[Install] | ||
WantedBy=basic.target |
Oops, something went wrong.