Skip to content

Commit a1fdcb8

Browse files
committed
add Dockerfile
1 parent 6471b4e commit a1fdcb8

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.dockerignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
/build-*/
10+
/test/sample_project/sample_project
11+
/test/sample_project/*.o
12+
/config.local.yml
13+
/oom
14+
/config.production.yml
15+
/.git/
16+
/.github/
17+
/.omnipackage

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM opensuse/tumbleweed
2+
3+
RUN zypper up -y && \
4+
zypper in -y ruby podman
5+
6+
COPY . /app
7+
RUN ln -s /app/exe/* /usr/bin/
8+
WORKDIR /app
9+
10+
#RUN bundle config --local without development test && \
11+
# bundle config set deployment true && \
12+
# bundle install
13+
14+
#RUN mkdir -p /etc/containers
15+
#RUN cat <<'EOF' > /etc/containers/containers.conf
16+
#[engine]
17+
#cgroup_manager = "none"
18+
#runtime = "runc"
19+
#EOF
20+
21+
22+
# docker build -t omnipackage-agent .
23+
24+
# docker run --rm -it --privileged --cgroupns=host -v /run/media/oleg/c3996ce0-a379-4403-9d64-7d4c0536463f/dev/omnipackage-build/:/tmp -v /home/oleg/projects/mpz:/project omnipackage-agent omnipackage build /project

0 commit comments

Comments
 (0)