-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ | |
/convert_report.txt | ||
/update_report.txt | ||
.DS_Store | ||
vault.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ruby:2.7.3 | ||
|
||
RUN apt-get update -yqq | ||
RUN apt-get install -yqq --no-install-recommends build-essential zip unzip libpq-dev libaio1 libaio-dev nodejs | ||
|
||
ENV APP_HOME=/usr/src/module | ||
ENV BUNDLE_PATH /gems | ||
ENV VAULT_VERSION=1.3.0 | ||
|
||
COPY . $APP_HOME | ||
|
||
RUN echo "gem: --no-rdoc --no-ri" >> ~/.gemrc | ||
|
||
WORKDIR $APP_HOME | ||
RUN gem update --system | ||
RUN gem install bundler | ||
RUN bundle install | ||
|
||
RUN curl -sLo vault.zip https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip \ | ||
&& unzip vault.zip \ | ||
&& mkdir -p /usr/local/bin \ | ||
&& mv vault /usr/local/bin | ||
|
||
CMD ["sleep 1"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
version: '2' | ||
services: | ||
hiera_vault: | ||
build: . | ||
command: bundle exec rake spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
VAULT_VERSION=1.3.0 | ||
cd /tmp/ | ||
curl -sLo vault.zip https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip | ||
unzip vault.zip | ||
mkdir -p /usr/local/bin | ||
mv vault /usr/local/bin | ||
echo 'Now run: export PATH="/usr/local/bin:$PATH"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters