Skip to content

Commit

Permalink
add dependency for legacy-sync build
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas loubrieu committed Sep 1, 2023
1 parent a0077aa commit fc86092
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ FROM python:3.10-slim-bullseye
ENV INSTALL_WORKDIR=/tmp/registry-sweepers

COPY . $INSTALL_WORKDIR

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git

RUN pip install $INSTALL_WORKDIR \
&& cp $INSTALL_WORKDIR/docker/sweepers_driver.py /usr/local/bin/ \
&& rm -r $INSTALL_WORKDIR
Expand Down
10 changes: 5 additions & 5 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ Requires a running deployment of registry

To build and run (assuming registry local-dev defaults for host/credentials)

cd path/to/registry-sweepers
docker build -t registry-sweepers .
cd path/to/registry-sweepers/
docker build -t registry-sweepers docker --file ./docker/Dockerfile .
docker run -e PROV_ENDPOINT='https://localhost:9200/' -e PROV_CREDENTIALS='{"admin": "admin"}' registry-sweepers

### Release of new versions

To release a new version for I&T, an updated image must be built and published to Docker Hub at `nasapds/registry-sweepers`

cd path/to/registry-sweepers
docker build -t nasapds/registry-sweepers .
docker push nasapds/registry-sweepers
cd path/to/registry-sweepers/docker
docker build -t nasapds/registry-sweepers:{version} --file ./docker/Dockerfile .
docker push nasapds/registry-sweepers:{version}

### Production Deployment

Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers =
install_requires =
requests~=2.28
retry~=0.9.2
solr-to-es @ git+https://github.com/o19s/solr-to-es@master


# Change this to False if you use things like __file__ or __path__—which you
Expand Down

0 comments on commit fc86092

Please sign in to comment.