Skip to content

Commit 2f7d4d5

Browse files
committed
initial commit
1 parent 9657602 commit 2f7d4d5

25 files changed

+2299
-0
lines changed

Dockerfile

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM debian:bookworm AS pgloader-builder
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
# Install build dependencies
6+
RUN apt-get update && apt-get install -y --no-install-recommends \
7+
git curl sbcl make unzip ca-certificates \
8+
libsqlite3-dev libssl-dev gawk freetds-dev jq \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
# Clone pgloader and build it
12+
WORKDIR /build
13+
RUN git clone https://github.com/dimitri/pgloader.git \
14+
&& cd pgloader \
15+
&& make
16+
17+
FROM node:22
18+
# Install basic development tools
19+
RUN \
20+
echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
21+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
22+
apt update && \
23+
apt install -y less man-db sudo vim jq python-is-python3 python3-virtualenv \
24+
locales postgresql-client-16 openssh-server
25+
26+
RUN \
27+
touch /.dockerenv && \
28+
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
29+
locale-gen en_US.UTF-8 && \
30+
update-locale ANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8
31+
32+
# Ensure default `node` user has access to `sudo`
33+
ARG USERNAME=node
34+
RUN \
35+
echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
36+
&& chmod 0440 /etc/sudoers.d/$USERNAME
37+
38+
# install ops and plugins
39+
USER node
40+
RUN \
41+
curl -sL https://raw.githubusercontent.com/apache/openserverless-cli/refs/heads/main/install.sh | bash
42+
RUN \
43+
curl -LsSf https://astral.sh/uv/install.sh | sh
44+
45+
ENV PATH="/home/node/.local/bin:${PATH}"
46+
47+
RUN \
48+
ops -update
49+
RUN \
50+
git clone https://github.com/apache/openserverless-devcontainer /home/node/.ops/openserverless-devcontainer ;\
51+
ln -sf /home/node/.ops/devcontaine/olaris-tk /home/node/olaris-tk
52+
53+
COPY --from=pgloader-builder /build/pgloader/build/bin/pgloader /usr/bin/pgloader
54+
ADD start-ssh.sh /start-ssh.sh
55+
56+
CMD ["/start-ssh.sh"]

olaris-tk/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
__pycache__
2+
_svr
3+
_src
4+
_sse
5+
.venv
6+
cli/profile_default/log
7+
cli/profile_default/pid
8+
cli/profile_default/security
9+
cli/profile_default/history.sqlite
10+
cli/profile_default/db/
11+
cli/requirements.txt
12+
node_modules
13+
mcp/mcproxy/kubernetes/_*.yaml
14+
.task/
15+
_dockerfile

olaris-tk/cli/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
profile_default/log
2+
profile_default/pid
3+
profile_default/security

olaris-tk/cli/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

olaris-tk/cli/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
starts ipython
2+
configure it with autoreload of modules

olaris-tk/cli/_empty

Whitespace-only changes.

olaris-tk/cli/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def main():
2+
print("Hello from cli!")
3+
4+
5+
if __name__ == "__main__":
6+
main()

0 commit comments

Comments
 (0)