Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5b6c75f9
Commit
5b6c75f9
authored
Apr 02, 2015
by
Zach Loafman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
And re-tabify that (to make previous easier to review)
parent
e57171d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
common.sh
build/common.sh
+11
-11
No files found.
build/common.sh
View file @
5b6c75f9
...
@@ -604,18 +604,18 @@ function kube::release::create_docker_images_for_server() {
...
@@ -604,18 +604,18 @@ function kube::release::create_docker_images_for_server() {
kube::log::status
"Starting Docker build for image:
${
binary_name
}
"
kube::log::status
"Starting Docker build for image:
${
binary_name
}
"
(
(
local
docker_file_path
=
"
$1
/
${
binary_name
}
.Dockerfile"
local
docker_file_path
=
"
$1
/
${
binary_name
}
.Dockerfile"
local
binary_file_path
=
"
$1
/
${
binary_name
}
"
local
binary_file_path
=
"
$1
/
${
binary_name
}
"
if
[
-f
${
docker_file_path
}
]
;
then
if
[
-f
${
docker_file_path
}
]
;
then
rm
${
docker_file_path
}
fi
printf
" FROM scratch
\n
ADD
${
binary_name
}
/
${
binary_name
}
\n
ENTRYPOINT [
\"
/
${
binary_name
}
\"
]
\n
"
>>
${
docker_file_path
}
local
md5_sum
=
$(
kube::release::md5
${
binary_file_path
})
local
docker_image_tag
=
gcr.io/google_containers/
$binary_name
:
$md5_sum
docker build
-q
-f
"
${
docker_file_path
}
"
-t
"
${
docker_image_tag
}
"
${
1
}
>
/dev/null
docker save
${
docker_image_tag
}
>
${
1
}
/
${
binary_name
}
.tar
echo
$md5_sum
>
${
1
}
/
${
binary_name
}
.docker_tag
rm
${
docker_file_path
}
rm
${
docker_file_path
}
fi
printf
" FROM scratch
\n
ADD
${
binary_name
}
/
${
binary_name
}
\n
ENTRYPOINT [
\"
/
${
binary_name
}
\"
]
\n
"
>>
${
docker_file_path
}
local
md5_sum
=
$(
kube::release::md5
${
binary_file_path
})
local
docker_image_tag
=
gcr.io/google_containers/
$binary_name
:
$md5_sum
docker build
-q
-f
"
${
docker_file_path
}
"
-t
"
${
docker_image_tag
}
"
${
1
}
>
/dev/null
docker save
${
docker_image_tag
}
>
${
1
}
/
${
binary_name
}
.tar
echo
$md5_sum
>
${
1
}
/
${
binary_name
}
.docker_tag
rm
${
docker_file_path
}
)
&
)
&
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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