-
-
Notifications
You must be signed in to change notification settings - Fork 21
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 #31 from SEPIA-Framework/dev
SEPIA-Home v2.7.0 release candidate
- Loading branch information
Showing
57 changed files
with
1,813 additions
and
381 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,17 +1,19 @@ | ||
#!/bin/bash | ||
# TODO: keep '--no-cache' ? | ||
version=latest | ||
if [ -n "$1" ]; then | ||
version=$1 | ||
else | ||
echo "Please specify the version to use for this release, e.g. 'v2.6.3'" | ||
exit | ||
fi | ||
if [ -n "$(uname -m | grep aarch64)" ]; then | ||
echo "Building SEPIA-Home Docker container: sepia/home:${version}_aarch64" | ||
sudo docker build --no-cache -t "sepia/home:${version}_aarch64" . | ||
echo "Building SEPIA-Home Docker container: sepia/home:${version}_aarch64_auto" | ||
sudo docker build --no-cache -t "sepia/home:${version}_aarch64_auto" . | ||
elif [ -n "$(uname -m | grep armv7l)" ]; then | ||
echo "Building SEPIA-Home Docker container: sepia/home:${version}_armv7l" | ||
sudo docker build --no-cache -t "sepia/home:${version}_armv7l" . | ||
echo "Building SEPIA-Home Docker container: sepia/home:${version}_armv7l_auto" | ||
sudo docker build --no-cache -t "sepia/home:${version}_armv7l_auto" . | ||
else | ||
# NOTE: x86 32bit build not supported atm | ||
echo "Building SEPIA-Home Docker container: sepia/home:${version}_amd64" | ||
sudo docker build --no-cache -t "sepia/home:${version}_amd64" . | ||
echo "Building SEPIA-Home Docker container: sepia/home:${version}_amd64_auto" | ||
sudo docker build --no-cache -t "sepia/home:${version}_amd64_auto" . | ||
fi |
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,14 @@ | ||
#!/bin/bash | ||
version=latest | ||
if [ -n "$1" ]; then | ||
version=$1 | ||
else | ||
echo "Please specify the version to use for 'latest' release, e.g. 'v2.6.2'" | ||
exit | ||
fi | ||
sudo docker manifest create sepia/home:latest \ | ||
--amend "sepia/home:${version}_amd64_auto" \ | ||
--amend "sepia/home:${version}_aarch64_auto" \ | ||
--amend "sepia/home:${version}_armv7l_auto" | ||
|
||
sudo docker manifest push sepia/home:latest |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM debian:bullseye-slim | ||
|
||
# Default to UTF-8 file.encoding | ||
ENV LANG C.UTF-8 | ||
|
||
# Get all packages, install Java OpenJDK 11 and create a user | ||
|
||
RUN echo 'Installing SEPIA-Framework build environment ...' && \ | ||
# | ||
# Update package sources | ||
apt-get update && \ | ||
# | ||
# Fix for Debian9/10 slim to be able to install Java | ||
mkdir -p /usr/share/man/man1 && \ | ||
# | ||
# Get packages | ||
apt-get install -y --no-install-recommends \ | ||
sudo git wget curl nano unzip zip procps ca-certificates \ | ||
openjdk-11-jdk-headless ca-certificates-java maven && \ | ||
# | ||
# Clean up | ||
apt-get clean && apt-get autoclean && apt-get autoremove -y && \ | ||
# | ||
# Create a Linux user | ||
useradd --create-home --shell /bin/bash admin && \ | ||
adduser admin sudo && \ | ||
echo "admin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
# Set JAVA_HOME path ... just in case - TODO: fix path for ARM or remove | ||
# | ||
# ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" | ||
# ENV PATH="${JAVA_HOME}:${PATH}" | ||
# | ||
# Set a Docker ENV to identify container in scripts | ||
ENV ISDOCKER="true" | ||
|
||
USER admin | ||
|
||
RUN echo "Creating build folders ..." && \ | ||
# | ||
# build | ||
mkdir -p /home/admin/build && \ | ||
cd /home/admin && \ | ||
echo "trap : TERM INT; sleep infinity & wait" > on-docker.sh | ||
|
||
# Start | ||
WORKDIR /home/admin | ||
CMD bash on-docker.sh |
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,2 @@ | ||
#!/bin/bash | ||
docker build -t sepia/build-env:latest . |
Oops, something went wrong.