Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
f875770a
Commit
f875770a
authored
Jun 16, 2022
by
Bryan BRANCOTTE
Browse files
add context to README.md
parent
cd370882
Pipeline
#83529
canceled with stages
in 5 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
f875770a
...
...
@@ -21,6 +21,7 @@ kubectl config set-context ippidb-dev --cluster=k8sdev-01 --user=$K8S_USER@k8sde
kubectl config set-context ippidb-prod
--cluster
=
k8sprod-02
--user
=
$K8S_USER
@k8sprod-02
--namespace
ippidb-prod
```
### Copy the media directory
```
shell
kubectl config use-context ippidb-dev
POD
=
$(
kubectl get po
-lapp
=
web-deployment,app.kubernetes.io/instance
=
$(
git branch
--show
)
--output
jsonpath
=
'{.items[0].metadata.name}'
)
...
...
@@ -28,8 +29,10 @@ echo $POD
date
kubectl
cp
ippisite/persistent/media/
$POD
:/code/persistent/media
--container
=
django
# 50 minutes
date
```
### Copy the db into postgresql bitnami
```
shell
kubectl config use-context ippidb-dev
POD
=
$(
kubectl get po
-lapp
.kubernetes.io/name
=
postgresqlbitnami,app.kubernetes.io/instance
=
$(
git branch
--show
)
--output
jsonpath
=
'{.items[0].metadata.name}'
)
;
echo
$POD
date
...
...
@@ -38,8 +41,10 @@ kubectl cp ippisite/db-django-4.0.sql.gz $POD:/bitnami/postgresql/ # 1 minutes
# gzip -d -c /bitnami/postgresql/db-django-4.0.sql.gz | psql -U postgres
kubectl
exec
-it
$POD
--
bash
date
```
### Copy the db into zolando bitnami
```
shell
kubectl config use-context ippidb-dev
POD
=
$(
kubectl get po
-lapplication
=
spilo,cluster-name
=
$(
git branch
--show
)
-postgresql
--output
jsonpath
=
'{.items[0].metadata.name}'
)
;
echo
$POD
date
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment