forked from Normation/rudder
-
Notifications
You must be signed in to change notification settings - Fork 0
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
20 changed files
with
198 additions
and
170 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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
FROM node:16-bullseye | ||
ENV NODE_ENV=production | ||
|
||
ARG USER_ID=1000 | ||
COPY ci/user.sh . | ||
RUN ./user.sh $USER_ID | ||
|
||
RUN npm install --global @redocly/[email protected] [email protected] | ||
RUN apt-get update && apt-get install -y rsync python3-yaml && rm -rf /var/lib/apt/lists/* |
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,3 @@ | ||
FROM python | ||
|
||
RUN pip install pylint |
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,18 @@ | ||
#!/bin/sh | ||
|
||
# used to setup Rust build containers | ||
|
||
rustup component add clippy | ||
|
||
# Install pre-compiled sccache | ||
SCCACHE_VER=0.2.15 | ||
wget --quiet https://github.com/mozilla/sccache/releases/download/v$SCCACHE_VER/sccache-v$SCCACHE_VER-x86_64-unknown-linux-musl.tar.gz | ||
tar -xf sccache-v$SCCACHE_VER-x86_64-unknown-linux-musl.tar.gz | ||
chmod +x sccache-v$SCCACHE_VER-x86_64-unknown-linux-musl/sccache | ||
mv sccache-v$SCCACHE_VER-x86_64-unknown-linux-musl/sccache /usr/local/bin/ | ||
|
||
# Install pre-compiled cargo-deny | ||
DENY_VER=0.10.1 | ||
wget --quiet https://github.com/EmbarkStudios/cargo-deny/releases/download/$DENY_VER/cargo-deny-$DENY_VER-x86_64-unknown-linux-musl.tar.gz | ||
tar -xf cargo-deny-$DENY_VER-x86_64-unknown-linux-musl.tar.gz | ||
mv cargo-deny-$DENY_VER-x86_64-unknown-linux-musl/cargo-deny /usr/local/bin/ |
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,3 @@ | ||
FROM debian:11 | ||
|
||
RUN apt-get update && apt-get install shellcheck |
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,7 @@ | ||
#!/bin/sh | ||
|
||
# Jenkins user with correct uid | ||
USER_ID=$1 | ||
mkdir /home/jenkins | ||
useradd -r -u $USER_ID -d /home/jenkins jenkins | ||
chown jenkins /home/jenkins |
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,12 @@ | ||
FROM rust:1.42.0-buster | ||
|
||
ARG USER_ID=1000 | ||
COPY ci/user.sh . | ||
RUN ./user.sh $USER_ID | ||
|
||
COPY ci/rust.sh . | ||
RUN ./rust.sh | ||
|
||
ENV RUSTC_WRAPPER="sccache" | ||
|
||
RUN apt-get update && apt-get install -y pkg-config libpq-dev postgresql-client |
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
Oops, something went wrong.