This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/openserverless-devcontainer.git

commit aeff74190ae7595faff5448efe7e1b475371e7ff
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sat Nov 22 11:39:38 2025 +0000

    image
---
 Taskfile.yml | 24 ++++++++++++++++++++++++
 start-ssh.sh | 12 +++++++++---
 2 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/Taskfile.yml b/Taskfile.yml
new file mode 100644
index 0000000..3f8a448
--- /dev/null
+++ b/Taskfile.yml
@@ -0,0 +1,24 @@
+version: 3
+
+vars:
+
+  NAME: ghcr.io/sciabarracom/openserverless-devcontainer
+
+  TAG:
+    sh: git tag --sort=-creatordate | head -n 1 || "latest"
+
+tasks:
+
+  show: "echo {{.NAME}}:{{.TAG}}"
+
+  image-tag:
+      - git tag -d "$(git tag)" || true
+      - git tag "0.1.0-incubating.$(date +%y%m%d%H%M)"
+      - task: show
+
+  build:
+      - docker build -t "{{.NAME}}:{{.TAG}}" . --load
+
+  build-and-tag:
+    - task: image-tag
+    - task: build
diff --git a/start-ssh.sh b/start-ssh.sh
index dd66d9e..7461669 100755
--- a/start-ssh.sh
+++ b/start-ssh.sh
@@ -2,9 +2,15 @@
 sudo mkdir -p /run/sshd
 sudo ssh-keygen -A
 mkdir -p ~/.ssh
-chmod 600 ~/.ssh/authorized_keys
+PORT=${SSH_PORT:-2222} d
 if test -n "$AUTHORIZED_KEY"
 then echo "$AUTHORIZED_KEY" >>~/.ssh/authorized_keys
+     chmod 600 ~/.ssh/authorized_keys
 fi
-ln -sf /workspace ~/workspace
-sudo chown -R 1000:1000 /workspace
+if test -d /workspace
+then
+    ln -sf /workspace ~/workspace
+    sudo chown -R 1000:1000 /workspace
+fi
+echo Starting ssh in port $PORT
+sudo /usr/sbin/sshd -p $PORT -D
\ No newline at end of file

Reply via email to