-
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.
Upgrade .NET to 8.0 and update build scripts. (#22)
- Loading branch information
1 parent
9e9dbb7
commit 9ae091f
Showing
22 changed files
with
165 additions
and
111 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.dockerignore | ||
|
||
ci/docker/Dockerfile | ||
ci/docker/Dockerfile.base | ||
ci/build-image.sh | ||
|
||
integration-test/output |
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 was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
FROM ubuntu:20.04 | ||
FROM ubuntu:22.04 | ||
|
||
COPY . /net-ssa | ||
|
||
|
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,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
CURRENT_DIR=$(dirname "$(readlink -f "$0")") | ||
|
||
pushd $CURRENT_DIR/.. | ||
|
||
BASE_IMAGE=net-ssa-base:latest | ||
docker build --file $CURRENT_DIR/docker/Dockerfile.base --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t $BASE_IMAGE . | ||
docker build --file $CURRENT_DIR/docker/Dockerfile --build-arg BASE_IMAGE=$BASE_IMAGE -t net-ssa:latest . | ||
|
||
popd |
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 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} | ||
|
||
COPY --chown=ubuntu:mygroup . ${NET_SSA_SRC_DIR} | ||
|
||
RUN dotnet build && \ | ||
dotnet test --verbosity normal && \ | ||
lit ./integration-test -vv |
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,28 @@ | ||
ARG REPO=mcr.microsoft.com/dotnet/sdk | ||
FROM $REPO:8.0-jammy | ||
|
||
ARG USER_ID | ||
ARG GROUP_ID | ||
|
||
# Create a new group and user with the specified IDs | ||
# Set up passwordless sudo access for the non-root user | ||
RUN groupadd -g $GROUP_ID mygroup && \ | ||
useradd -u $USER_ID -g $GROUP_ID ubuntu && \ | ||
apt-get update && \ | ||
apt-get install --no-install-recommends -y sudo && \ | ||
echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
# Switch to the new user | ||
USER ubuntu | ||
RUN sudo mkdir -p /home/ubuntu && sudo chown -R ubuntu:mygroup /home/ubuntu | ||
|
||
ENV NET_SSA_SRC_DIR=/home/ubuntu/net-ssa/ | ||
COPY --chown=ubuntu:mygroup ./ci/ ${NET_SSA_SRC_DIR}/ci | ||
|
||
RUN sudo ${NET_SSA_SRC_DIR}/ci/install-souffle.sh && \ | ||
sudo ${NET_SSA_SRC_DIR}/ci/install-lit.sh && \ | ||
sudo ${NET_SSA_SRC_DIR}/ci/install-llvm.sh && \ | ||
sudo ${NET_SSA_SRC_DIR}/ci/install-mono.sh | ||
|
||
|
||
WORKDIR ${NET_SSA_SRC_DIR} |
This file was deleted.
Oops, something went wrong.
Empty file.
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,3 +1,3 @@ | ||
#!/bin/bash | ||
set -e | ||
apt-get install -y clang++-12 llvm-12 llvm-12-tools && ln -s /usr/bin/llvm-config-12 /usr/bin/llvm-config | ||
apt-get install -y clang++-12 llvm-12 llvm-12-tools |
Empty file.
Empty file.
Empty file.
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 | ||
set -e | ||
|
||
CURRENT_DIR=$(dirname "$(readlink -f "$0")") | ||
|
||
pushd $CURRENT_DIR/.. | ||
docker run --rm -it -v $(pwd):/home/ubuntu/net-ssa net-ssa:latest | ||
popd |
Oops, something went wrong.