Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding multiple ssh support to arch flist #267

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions tfgrid3/arch_mycelium/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM archlinux:latest
FROM archlinux:base-20240101.0.204074

Check failure

Code scanning / Trivy

Image user should not be 'root' High

Artifact: tfgrid3/arch_mycelium/Dockerfile
Type: dockerfile
Vulnerability DS002
Severity: HIGH
Message: Specify at least 1 USER command in Dockerfile with non-root user as argument
Link: DS002

# Update system and install packages
RUN pacman -Syu --noconfirm && \
Expand All @@ -16,11 +16,6 @@
# Adding zinit config files
ADD zinit /etc/zinit/

# Install latest mycelium
RUN mycelium_version=$(curl -s https://api.github.com/repos/threefoldtech/mycelium/releases/latest | grep 'tag_name' | cut -d '"' -f 4 ) && \
wget "https://github.com/threefoldtech/mycelium/releases/download/${mycelium_version}/mycelium-x86_64-unknown-linux-musl.tar.gz" && \
tar -xzf mycelium-x86_64-unknown-linux-musl.tar.gz -C /usr/local/bin/

# Cleaning up
RUN pacman -Scc --noconfirm

Expand Down
1 change: 0 additions & 1 deletion tfgrid3/arch_mycelium/zinit/ssh_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ exec: /bin/sh -eux -c "
chmod 600 /etc/ssh/*;
touch ~/.ssh/authorized_keys;
chmod 600 ~/.ssh/authorized_keys;
echo $SSH_KEY > /root/.ssh/authorized_keys;
echo 'ssh configured'"
oneshot: true
3 changes: 1 addition & 2 deletions tfgrid3/arch_mycelium/zinit/sshd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
exec: /bin/sh -c " set -x ;
/usr/sbin/sshd;"
exec: /usr/sbin/sshd -D
after:
- ssh_config
Loading