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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa4d06b1bc87888397e4509eda913a1a5ad0cf4f069762852282de9c1cd7c6a0
4
- data.tar.gz: 605d4b7e09d3fe47b2fa5106d5cd27e8255ba5265dff1bcfe8fbda3fb380195d
3
+ metadata.gz: 727948ba554b3da5510261c8ddc8983a8113b7df7c30fb769a2291bc0af77195
4
+ data.tar.gz: 70a553c15a613d41300775b0f063cb2c34fcc9998d2f8d26d310a1c88fec3a17
5
5
  SHA512:
6
- metadata.gz: cce83e3128b0d19d7ccec3d0fe85411d19959229fc8cd3ad9fdf47b40c739e598f3dd2020078492361df9d309b15e0c82824901ff2511b434adea09c9484d246
7
- data.tar.gz: 7bc58a62f322c543e2aa57b5a75611d4984c3b72454c4ac52fbd91bfa074efde217fa8355bfc38718d13b0ac839fbe13c8c567307e0c1516e3067cea351f4594
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"]
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.3)
4
+ opswalrus (1.0.4)
5
5
  bcrypt_pbkdf
6
6
  citrus
7
7
  ed25519