opswalrus 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +43 -0
- data/Gemfile.lock +1 -1
- data/LICENSE +277 -674
- data/README.md +16 -0
- data/lib/opswalrus/ops_file_script.rb +2 -2
- data/lib/opswalrus/version.rb +1 -1
- data/lib/opswalrus/walrus_lang.rb +11 -2
- data/opswalrus.gemspec +17 -16
- metadata +32 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 727948ba554b3da5510261c8ddc8983a8113b7df7c30fb769a2291bc0af77195
|
4
|
+
data.tar.gz: 70a553c15a613d41300775b0f063cb2c34fcc9998d2f8d26d310a1c88fec3a17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d4198f362160b5d0f1baba4fe0999f382b3cf1250cd8a608859901e55bb8f307673761c6699f60c81a70814d8eec3a67b66de241e94f95856dbdf69f703dc2
|
7
|
+
data.tar.gz: 3fd8074d05b9c50976ef81a700fe95217046e7e7ced70799e6f65eac46b5d61f14f1ee267191e64264663a4d11bb3b61d202d4eab32c80e08e92b0d9769ca7ff
|
data/Dockerfile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# This is modelled after https://github.com/mrsked/mrsk/blob/main/Dockerfile
|
2
|
+
|
3
|
+
# Use the official Ruby 3.2.0 Alpine image as the base image
|
4
|
+
FROM ruby:3.2.0-alpine
|
5
|
+
|
6
|
+
# Install docker/buildx-bin
|
7
|
+
COPY --from=docker/buildx-bin /buildx /usr/libexec/docker/cli-plugins/docker-buildx
|
8
|
+
|
9
|
+
# Set the working directory to /opswalrus
|
10
|
+
WORKDIR /opswalrus
|
11
|
+
|
12
|
+
# Copy the Gemfile, Gemfile.lock into the container
|
13
|
+
COPY Gemfile Gemfile.lock opswalrus.gemspec ./
|
14
|
+
|
15
|
+
# Required in opswalrus.gemspec
|
16
|
+
COPY lib/opswalrus/version.rb /opswalrus/lib/opswalrus/version.rb
|
17
|
+
|
18
|
+
# Install system dependencies
|
19
|
+
RUN apk add --no-cache --update build-base git docker openrc openssh-client-default \
|
20
|
+
&& rc-update add docker boot \
|
21
|
+
&& gem install bundler --version=2.4.3 \
|
22
|
+
&& bundle install
|
23
|
+
|
24
|
+
# Copy the rest of our application code into the container.
|
25
|
+
# We do this after bundle install, to avoid having to run bundle
|
26
|
+
# every time we do small fixes in the source code.
|
27
|
+
COPY . .
|
28
|
+
|
29
|
+
# Install the gem locally from the project folder
|
30
|
+
RUN gem build opswalrus.gemspec && \
|
31
|
+
gem install ./opswalrus-*.gem --no-document
|
32
|
+
|
33
|
+
# Set the working directory to /workdir
|
34
|
+
WORKDIR /workdir
|
35
|
+
|
36
|
+
# Tell git it's safe to access /workdir/.git even if
|
37
|
+
# the directory is owned by a different user
|
38
|
+
RUN git config --global --add safe.directory /workdir
|
39
|
+
|
40
|
+
# Set the entrypoint to run the installed binary in /workdir
|
41
|
+
# Example: docker run -it -v "$PWD:/workdir" ops
|
42
|
+
# ENTRYPOINT ["ops"]
|
43
|
+
CMD ["ops"]
|