working server builds

This commit is contained in:
dave 2021-11-08 22:04:21 -08:00
parent d6f1f6ca6e
commit ec0b89039c
6 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,5 @@
/testenv/
testenv/*
testdata/*
build/*
dist/*
*.egg-info/*

View File

@ -15,4 +15,4 @@ RUN cd /tmp/code && \
USER nobody
ENTRYPOINT ["packagecli"]
ENTRYPOINT ["backupdbserver"]

View File

@ -1,4 +1,4 @@
DOCKERIMAGE := dockermirror:5000/dpedu/package
DOCKERIMAGE := dockermirror:5000/dpedu/backupdb2
DOCKEROPTS :=
BINARY := dist/package-0.0.0-py3-none-any.whl
@ -18,3 +18,6 @@ push: image
testenv:
virtualenv -p python3 testenv
testenv/bin/pip3 install -r requirements.txt
build-kaniko:
kanikoclient $(DOCKERIMAGE)

View File

@ -1 +1 @@
__version__ = "0.0.0"
__version__ = "0.0.0"

View File

@ -271,7 +271,7 @@ def get_args():
p_download = sp_action.add_parser("download", help="download action")
p_download.set_defaults(func=cmd_download)
p_download.add_argument("-n", "--namespace", default="default", help="parent namespace download from")
p_download.add_argument("-n", "--namespace", default="default", help="parent namespace to download from")
p_download.add_argument("backup", help="backup to download")
p_download.add_argument("date", help="date of backup to download")

View File

@ -11,9 +11,6 @@ STREAM_CHUNK_SIZE = int(os.environ.get("BACKUPDB_STREAM_CHUNK_SIZE", 1024 * 1024
LOCKFILE = ".datadb.lock"
import botocore.errorfactory
class BackupManager(object):
"""
Client for listing/reading backups