This is an automated email from the ASF dual-hosted git repository.
sciabarracom pushed a commit to branch 0.9.0
in repository
https://gitbox.apache.org/repos/asf/openserverless-devcontainer.git
The following commit(s) were added to refs/heads/0.9.0 by this push:
new 00337e1 updated devcontainer
00337e1 is described below
commit 00337e1c0f9d203b87d86d42b0f7c5fb1310752b
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sun Sep 13 14:30:07 2026 +0200
updated devcontainer
---
.gitignore | 1 +
Dockerfile | 25 +++++++++++++++++--------
start.sh | 2 ++
3 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/.gitignore b/.gitignore
index 593fd3a..961f207 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,4 @@
_*
.env
+.vscode
diff --git a/Dockerfile b/Dockerfile
index 9613f29..fef4867 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,20 +14,26 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-
-FROM golang:1.25 AS builder
-RUN go install github.com/apache/openserverless-cli/cmd/[email protected]
-
FROM node:24-trixie
-COPY --from=builder /go/bin/ops /usr/local/bin/ops
ARG DEVCONTAINER_IMAGE_DEFAULT=docker.io/apache/openserverless-devcontainer
ARG DEVCONTAINER_TAG_DEFAULT=latest
# Install basic development tools
RUN \
DEBIAN_FRONTENND=noninteractive apt update && \
- DEBIAN_FRONTENND=noninteractive apt install -y less sudo jq nano
python-is-python3 python3-virtualenv \
- locales openssh-server tini supervisor postgresql-client-17 && \
+ DEBIAN_FRONTENND=noninteractive apt install -y \
+ zip \
+ less \
+ sudo \
+ jq \
+ nano \
+ python-is-python3 \
+ python3-virtualenv \
+ locales \
+ openssh-server \
+ tini \
+ supervisor \
+ postgresql-client-17 && \
rm -rf /var/lib/apt/lists/*
# setup env
@@ -39,13 +45,16 @@ RUN \
ENV HOME=/home/openserverless
ENV PATH=/home/.local/bin:/usr/local/bin:/usr/bin:/bin
-RUN /usr/local/bin/ops -t
+RUN \
+ curl -sL
https://raw.githubusercontent.com/apache/openserverless-cli/refs/heads/0.9.0/install
| bash ;\
+ mv -v /home/openserverless/.local/bin/ops /usr/bin/ops
ADD supervisord.ini /etc/supervisord.ini
ADD start.sh /usr/local/bin/start.sh
RUN mkdir -p /home/openserverless
WORKDIR /home/openserverless
+
# Apache release metadata (see DISCLAIMER, LICENSE, NOTICE, WARN)
COPY DISCLAIMER LICENSE NOTICE /
diff --git a/start.sh b/start.sh
index a8d94ed..bc1c157 100755
--- a/start.sh
+++ b/start.sh
@@ -40,6 +40,8 @@ then
chmod 700 $HOME/.ssh
fi
+/usr/bin/ops -t
+
touch $HOME/.bashrc
echo ARCH="$(dpkg --print-architecture)" >>~/.bashrc
echo 'export PATH="$HOME/.local/bin:$HOME:$HOME/.ops/linux-$ARCH/bin:$PATH"'
>>~/.bashrc