-
Notifications
You must be signed in to change notification settings - Fork 370
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 #1656 from reflectivedevelopment/main
Ubuntu 22.04
- Loading branch information
Showing
34 changed files
with
633 additions
and
50 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
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,42 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG uid=1000 | ||
ARG user=indy | ||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
# common stuff | ||
git \ | ||
apt-transport-https \ | ||
apt-utils\ | ||
wget\ | ||
curl\ | ||
jq\ | ||
gnupg | ||
|
||
# ======================================================================================================== | ||
# Update repository signing keys | ||
# -------------------------------------------------------------------------------------------------------- | ||
# Hyperledger | ||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 && \ | ||
# Sovrin | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 | ||
# ======================================================================================================== | ||
|
||
# Plenum | ||
# - https://github.com/hyperledger/indy-plenum/issues/1546 | ||
# - Needed to pick up rocksdb=5.8.8 | ||
#RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy focal dev" >> /etc/apt/sources.list && \ | ||
# echo "deb https://repo.sovrin.org/deb bionic master" >> /etc/apt/sources.list && \ | ||
# echo "deb https://repo.sovrin.org/sdk/deb bionic master" >> /etc/apt/sources.list | ||
|
||
# TODO change this to official repo | ||
RUN echo "deb [trusted=yes] http://209.141.41.82:8000/ packagedir/" >> /etc/apt/sources.list | ||
|
||
|
||
RUN apt-get update -y && apt-get install -y \ | ||
# Python | ||
python3-pip \ | ||
rubygems && \ | ||
gem install --no-document dotenv:2.8.1 fpm:1.15.0 && \ | ||
pip3 install Cython==0.29.36 | ||
|
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,30 @@ | ||
### Build indy-plenum using docker | ||
|
||
``` | ||
./build-indy-plenum-docker.sh <path-to-sources> <version> | ||
``` | ||
Built package is placed in a docker volume `indy-plenum-deb-u1604`. | ||
|
||
### Build indy-plenum | ||
|
||
``` | ||
./build-indy-plenum.sh <path to sources> <version> <output-path: default='.'> | ||
``` | ||
|
||
Built package is placed in the `output-path` folder. | ||
|
||
### Build 3rd-party dependencies using docker | ||
|
||
``` | ||
./build-3rd-parties-docker.sh | ||
``` | ||
|
||
Built packages are placed in a docker volume `indy-plenum-deb-u1604`. | ||
|
||
### Build 3rd-party dependencies | ||
|
||
``` | ||
./build-3rd-parties-docker.sh <output-path: default='.'> | ||
``` | ||
|
||
Built packages are placed in the `output-path` folder. |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -e | ||
|
||
|
||
PKG_SOURCE_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../../ | ||
|
||
if [ -z "$2" ]; then | ||
CMD="/input/build-scripts/ubuntu-2204/build-3rd-parties.sh /output" | ||
else | ||
CMD="$2" | ||
fi | ||
|
||
PKG_NAME=indy-plenum | ||
IMAGE_NAME="${PKG_NAME}-build-u2204" | ||
OUTPUT_VOLUME_NAME="${1:-"${PKG_NAME}-deb-u2204"}" | ||
|
||
docker build -t "${PKG_NAME}-build-u2204" -f $PKG_SOURCE_PATH/.github/workflows/build/Dockerfile.ubuntu-2204 . | ||
docker volume create --name "${OUTPUT_VOLUME_NAME}" | ||
|
||
docker run \ | ||
-i \ | ||
--rm \ | ||
-v "${PKG_SOURCE_PATH}:/input" \ | ||
-v "${OUTPUT_VOLUME_NAME}:/output" \ | ||
"${IMAGE_NAME}" \ | ||
$CMD |
Oops, something went wrong.