Skip to content

Commit

Permalink
Cleanup package references
Browse files Browse the repository at this point in the history
- Remove references to temporary and personal repositories.

Signed-off-by: Wade Barnes <[email protected]>
  • Loading branch information
WadeBarnes committed Apr 26, 2024
1 parent 40e415a commit 00dab20
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
23 changes: 10 additions & 13 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,21 @@ RUN apt-get update -y && apt-get install -y \
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 && \
# Sovrin
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 && \
# bionic-security
# Bionic-Security
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
# ========================================================================================================

# ToDo:
# - Eliminate dependency on obsolete bionic repositories.

# 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 && \
RUN echo "deb https://hyperledger.jfrog.io/artifactory/indy jammy dev" >> /etc/apt/sources.list && \
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /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

# Kim's temp repo
# TODO:
# - Remove dependency on Kim's temp repo.
# - 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 \
Expand All @@ -69,10 +66,11 @@ RUN apt-get update -y && apt-get install -y \
ursa=0.3.2-1 \
# Indy SDK
libindy=1.15.0~1625-bionic \
# Kim's updated packages
# - TODO: Remove dependency on Kim's temp repo.
python3-sortedcontainers \
python3-rlp \
# ToDo:
# - Necessary updates to this package have not been published yet.
# - This deb is a special build using the code here:
# - https://github.com/ioflo/ioflo/commit/45bcddbf680d22af84469406a04286ff1c79043a
# - This line can be removed once the release containing these changes is available on PyPi
python3-ioflo \
# Need to move libursa.so to parent dir
&& mv /usr/lib/ursa/* /usr/lib && rm -rf /usr/lib/ursa
Expand All @@ -87,6 +85,5 @@ RUN pip3 install -U \
flake8==3.8.4 \
Cython==0.29.36


# install fpm
RUN gem install --no-document rake dotenv:2.8.1 fpm:1.15.0
18 changes: 10 additions & 8 deletions .github/workflows/build/Dockerfile.ubuntu-2204
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ RUN apt-get update -y && apt-get install -y \
# Hyperledger
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9692C00E657DDE61 && \
# Sovrin
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 && \
# Bionic-Security
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
# ========================================================================================================

# ToDo:
# - Eliminate dependency on obsolete bionic repositories.

# 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 echo "deb https://hyperledger.jfrog.io/artifactory/indy jammy dev" >> /etc/apt/sources.list && \
echo "deb http://security.ubuntu.com/ubuntu bionic-security main" >> /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.listst

RUN apt-get update -y && apt-get install -y \
# Python
Expand Down
7 changes: 5 additions & 2 deletions build-scripts/ubuntu-2204/build-3rd-parties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function build_rocksdb_deb {
function build_ioflo_deb {
VERSION=$1

git clone https://github.com/reflectivedevelopment/ioflo.git /tmp/ioflo
git clone https://github.com/ioflo/ioflo.git /tmp/ioflo
pushd /tmp/ioflo
git checkout $VERSION

Expand Down Expand Up @@ -161,7 +161,10 @@ build_from_pypi_wheel base58
### Needs to be pinned to 3.10.1 because from v4.0.0 the package name ends in python3-importlib-metadata_0.0.0_amd64.deb
### https://github.com/hyperledger/indy-plenum/runs/4166593170?check_suite_focus=true#step:5:5304
build_from_pypi_wheel importlib-metadata 3.10.1
build_ioflo_deb 2.0.3
# ToDo:
# - Currently being built off a commit from the main repo
# - Update to build from PyPi Wheel once a release containing Kim's updates is available on PyPi
build_ioflo_deb 45bcddbf680d22af84469406a04286ff1c79043a
build_from_pypi_wheel jsonpickle
build_from_pypi_wheel leveldb
build_from_pypi_wheel libnacl 1.6.1
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/ubuntu-2204/prepare-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ fi

popd

echo -e "\nFinished preparing $repo for publishing\n"
echo -e "\nFinished preparing $repo for publishing\n"

0 comments on commit 00dab20

Please sign in to comment.