Skip to content

Commit

Permalink
DOCKER: Take an image version num
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaldino committed Feb 5, 2022
1 parent 709bae4 commit 97a3c41
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
package_data={'opensextant': ['./resources/geonames.org/*.txt', './resources/*.csv', './resources/*.cfg']},

install_requires=['pysolr>=3.9.0', 'chardet>=3.0.0', 'requests>=2.18', 'arrow>=1.1.0', 'PyGeodesy>=21.3.3']
install_requires=['pysolr>=3.9.0', 'chardet>=3.0.0', 'requests', 'arrow>=1.1.0', 'PyGeodesy>=21.3.3']
)
6 changes: 5 additions & 1 deletion script/dist-docker-offline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ REPO=maven-repo
echo " Xponents Docker Offline "
echo "=============================================="

echo "Version Number of Image"
read IMG_VERSION


# CORE
echo "++++++++++++++++ CORE ++++++++++++++++"
(cd Core && mvn install -Dmaven.repo.local=../$REPO)
Expand Down Expand Up @@ -111,4 +115,4 @@ done
# Docker
echo "++++++++++++++++ DOCKER / Maven Offline ++++++++++++++++"
cd $TARGET
docker build --tag opensextant:xponents-offline-$VERSION -f ./Dockerfile.offline .
docker build --tag opensextant:xponents-offline-$IMG_VERSION -f ./Dockerfile.offline .
5 changes: 4 additions & 1 deletion script/dist-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ fi
echo " Xponents Docker "
echo "=============================================="

echo "Version Number of Image"
read IMG_VERSION

cd $TARGET/
docker build --tag opensextant:xponents-$VERSION .
docker build --tag opensextant:xponents-$IMG_VERSION .

0 comments on commit 97a3c41

Please sign in to comment.