-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from Starfly-13/revert-shiptest-3527
Revert "Kill Xenobio Stuff (#3527)"
- Loading branch information
Showing
137 changed files
with
8,261 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM beestation/byond:515.1633 as base | ||
|
||
# Install the tools needed to compile our rust dependencies | ||
FROM base as rust-build | ||
ENV PKG_CONFIG_ALLOW_CROSS=1 \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH | ||
WORKDIR /build | ||
COPY dependencies.sh . | ||
RUN dpkg --add-architecture i386 \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
curl ca-certificates gcc-multilib \ | ||
clang g++-multilib libc6-i386 \ | ||
zlib1g-dev:i386 pkg-config:i386 git \ | ||
&& /bin/bash -c "source dependencies.sh \ | ||
&& curl https://sh.rustup.rs | sh -s -- -y -t i686-unknown-linux-gnu --no-modify-path --profile minimal --default-toolchain \$RUST_VERSION" \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Build rust-g | ||
FROM rust-build as build-rustg | ||
RUN git init \ | ||
&& git remote add origin https://github.com/tgstation/rust-g \ | ||
&& /bin/bash -c "source dependencies.sh \ | ||
&& git fetch --depth 1 origin \$RUST_G_VERSION" \ | ||
&& git checkout FETCH_HEAD \ | ||
&& cargo build --release --target i686-unknown-linux-gnu | ||
|
||
# Create the final container image with rust-g | ||
FROM scratch as rustg | ||
COPY --from=build-rustg /build/target/i686-unknown-linux-gnu/release/librust_g.so /librust_g.so |
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
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,16 @@ | ||
#!/usr/bin/env bash | ||
# build-rust-g | ||
|
||
# determine the version of rust_g | ||
source dependencies.sh | ||
echo "Building rust_g v${RUST_G_VERSION}..." | ||
|
||
# build rust_g, and tag it as rust_g:$RUST_G_VERSION | ||
docker buildx build \ | ||
--file Dockerfile-rust_g \ | ||
--no-cache \ | ||
--tag rust_g:${RUST_G_VERSION} \ | ||
. | ||
|
||
# since we just built rust_g, tag it again as rust_g:latest | ||
docker image tag rust_g:${RUST_G_VERSION} rust_g:latest |
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
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
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
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.