FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docker-python/push at 18b07e269a53272ba189819bcf5a8809f8dbb062 · HpcDataLab/docker-python · GitHub
HpcDataLab
docker-python
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
docker-python
/
push
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
35 lines (30 loc) · 826 Bytes
Breadcrumbs
docker-python
/
push
Copy path
File metadata and controls
executable file
·
35 lines (30 loc) · 826 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!
/bin/bash
#
#
Push a newly-built image with the given label to gcr.io and DockerHub.
#
#
Usage:
#
./push [--gpu] [LABEL]
#
#
Description:
#
LABEL: Docker image label. Defaults to "testing".
#
#
Options:
#
--gpu: Psuh the image with GPU support.
#
set
-e
set
-x
SOURCE_IMAGE=
"
kaggle/python-build
"
TARGET_IMAGE=
"
gcr.io/kaggle-images/python
"
if
[[
"
$1
"
==
"
--gpu
"
]]
;
then
SOURCE_IMAGE=
"
kaggle/python-gpu-build
"
TARGET_IMAGE=
"
gcr.io/kaggle-private-byod/python
"
shift
fi
LABEL=
${1
:-
testing}
docker tag
$SOURCE_IMAGE
:latest
$TARGET_IMAGE
:
$LABEL
gcloud docker -- push
$TARGET_IMAGE
:
$LABEL
#
Only CPU images are made public at this time.
if
[[
"
$LABEL
"
==
"
latest
"
&&
SOURCE_IMAGE
=
"
kaggle/python-build
"
]]
;
then
docker tag
$SOURCE_IMAGE
:latest kaggle/python:
$LABEL
docker push kaggle/python:
$LABEL
fi
Back
|
FazBrowse Home
|
New Git URL