Merge branch 'cic-ussd-image-normalize' into 'master'

use the ubuntu slim image

See merge request grassrootseconomics/cic-internal-integration!63
This commit is contained in:
Blair Vanderlugt 2021-03-12 16:48:40 +00:00
commit 3661e48fd1
4 changed files with 13 additions and 17 deletions

View File

@ -10,7 +10,7 @@ from cic_notify.error import PleaseCommitFirstError
logg = logging.getLogger() logg = logging.getLogger()
version = (0, 4, 0, 'alpha.2') version = (0, 4, 0, 'alpha.3')
version_object = semver.VersionInfo( version_object = semver.VersionInfo(
major=version[0], major=version[0],
@ -24,9 +24,6 @@ version_string = str(version_object)
def git_hash(): def git_hash():
import subprocess import subprocess
git_diff = subprocess.run(['git', 'diff'], capture_output=True)
if len(git_diff.stdout) > 0:
raise PleaseCommitFirstError()
git_hash = subprocess.run(['git', 'rev-parse', 'HEAD'], capture_output=True) git_hash = subprocess.run(['git', 'rev-parse', 'HEAD'], capture_output=True)
git_hash_brief = git_hash.stdout.decode('utf-8')[:8] git_hash_brief = git_hash.stdout.decode('utf-8')[:8]
@ -35,7 +32,7 @@ def git_hash():
try: try:
version_git = git_hash() version_git = git_hash()
version_string += '.build.{}'.format(version_git) version_string += '+build.{}'.format(version_git)
except FileNotFoundError: except FileNotFoundError:
time_string_pair = str(time.time()).split('.') time_string_pair = str(time.time()).split('.')
version_string += '+build.{}{:<09d}'.format( version_string += '+build.{}{:<09d}'.format(

View File

@ -1,5 +1,5 @@
celery~=4.4.7
confini~=0.3.6a1
alembic~=1.4.2 alembic~=1.4.2
celery~=4.4.7
confini~=0.3.6rc3
redis~=3.5.3 redis~=3.5.3
semver==2.13.0 semver==2.13.0

View File

@ -1,4 +1,5 @@
FROM python:3.8.5-alpine # FROM python:3.8.5-alpine
FROM python:3.8.6-slim-buster
# set working directory # set working directory
WORKDIR /usr/src WORKDIR /usr/src
@ -6,10 +7,8 @@ WORKDIR /usr/src
# add args for installing from self-hosted packages # add args for installing from self-hosted packages
ARG pip_extra_index_url_flag='--extra-index-url https://pip.grassrootseconomics.net:8433' ARG pip_extra_index_url_flag='--extra-index-url https://pip.grassrootseconomics.net:8433'
# add alpine sys packages RUN apt-get update && \
RUN apk update && \ apt install -y gcc gnupg libpq-dev wget make g++ gnupg bash procps git
apk add git linux-headers postgresql-dev gnupg bash
RUN apk add --update musl-dev gcc libffi-dev
# create secrets directory # create secrets directory
RUN mkdir -vp pgp/keys RUN mkdir -vp pgp/keys

View File

@ -1,4 +1,3 @@
cic-types==0.1.0a8
alembic==1.4.2 alembic==1.4.2
amqp==2.6.1 amqp==2.6.1
attrs==20.2.0 attrs==20.2.0
@ -7,10 +6,11 @@ betterpath==0.2.2
billiard==3.6.3.0 billiard==3.6.3.0
celery==4.4.7 celery==4.4.7
cffi==1.14.3 cffi==1.14.3
cic-eth~=0.10.0a22 cic-eth~=0.10.0a41
cic-notify==0.3.1 cic-notify~=0.4.0a3
cic-types~=0.1.0a8
click==7.1.2 click==7.1.2
confini~=0.3.6a1 confini~=0.3.6rc3
cryptography==3.2.1 cryptography==3.2.1
faker==4.17.1 faker==4.17.1
iniconfig==1.1.1 iniconfig==1.1.1