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
c8cc7b1c
Commit
c8cc7b1c
authored
Aug 10, 2018
by
Balaji Subramaniam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added multi-arch support.
- Used multi-stage builds.
parent
297170e0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
14 deletions
+55
-14
BASEIMAGE
test/images/node-perf/npb-ep/BASEIMAGE
+3
-1
Dockerfile
test/images/node-perf/npb-ep/Dockerfile
+19
-3
BASEIMAGE
test/images/node-perf/npb-is/BASEIMAGE
+3
-1
Dockerfile
test/images/node-perf/npb-is/Dockerfile
+22
-4
Dockerfile
test/images/node-perf/tf-wide-deep/Dockerfile
+8
-5
No files found.
test/images/node-perf/npb-ep/BASEIMAGE
View file @
c8cc7b1c
amd64=debian:stretch
amd64=debian:stretch-slim
arm64=arm64v8/debian:stretch-slim
ppc64le=ppc64le/debian:stretch-slim
test/images/node-perf/npb-ep/Dockerfile
View file @
c8cc7b1c
...
@@ -12,7 +12,9 @@
...
@@ -12,7 +12,9 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
FROM
BASEIMAGE
FROM
BASEIMAGE as build_node_perf_npb_ep
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
RUN
apt-get update
&&
apt-get
install
-y
build-essential gfortran
RUN
apt-get update
&&
apt-get
install
-y
build-essential gfortran
...
@@ -20,7 +22,21 @@ ADD http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz .
...
@@ -20,7 +22,21 @@ ADD http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz .
RUN
tar
xzf NPB3.3.1.tar.gz
RUN
tar
xzf NPB3.3.1.tar.gz
WORKDIR
./NPB3.3.1/NPB3.3-OMP
WORKDIR
./NPB3.3.1/NPB3.3-OMP
RUN
cp
config/NAS.samples/make.def.gcc_x86 config/make.def
RUN if
[
$(
arch
)
!=
"x86_64"
]
;
then
\
sed
s/-mcmodel
=
medium//g config/NAS.samples/make.def.gcc_x86
>
config/make.def
;
\
else
\
cp
config/NAS.samples/make.def.gcc_x86 config/make.def
;
\
fi
RUN
make EP
CLASS
=
D
RUN
make EP
CLASS
=
D
ENTRYPOINT
./bin/ep.D.x
# Copying the required libraries (shared object files) to a convenient location so that it can be copied into the
# main container in the second build stage.
RUN
mkdir
-p
/lib-copy
&&
find /usr/lib
-name
"*.so.*"
-exec
cp
{}
/lib-copy
\;
FROM
BASEIMAGE
COPY
--from=build_node_perf_npb_ep /NPB3.3.1/NPB3.3-OMP/bin/ep.D.x /
COPY
--from=build_node_perf_npb_ep /lib-copy /lib-copy
ENV
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/lib-copy"
ENTRYPOINT
/ep.D.x
test/images/node-perf/npb-is/BASEIMAGE
View file @
c8cc7b1c
amd64=debian:stretch
amd64=debian:stretch-slim
arm64=arm64v8/debian:stretch-slim
ppc64le=ppc64le/debian:stretch-slim
test/images/node-perf/npb-is/Dockerfile
View file @
c8cc7b1c
...
@@ -12,15 +12,33 @@
...
@@ -12,15 +12,33 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
FROM
BASEIMAGE
FROM
BASEIMAGE as build_node_perf_npb_is
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
RUN
apt-get update
&&
apt-get
install
-y
build-essential
RUN
apt-get update
&&
apt-get
install
-y
build-essential
gfortran
ADD
http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz .
ADD
http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz .
RUN
tar
xzf NPB3.3.1.tar.gz
RUN
tar
xzf NPB3.3.1.tar.gz
WORKDIR
./NPB3.3.1/NPB3.3-OMP
WORKDIR
./NPB3.3.1/NPB3.3-OMP
RUN
cp
config/NAS.samples/make.def.gcc_x86 config/make.def
# Create build config based on the architecture and build the workload.
RUN if
[
$(
arch
)
!=
"x86_64"
]
;
then
\
sed
s/-mcmodel
=
medium//g config/NAS.samples/make.def.gcc_x86
>
config/make.def
;
\
else
\
cp
config/NAS.samples/make.def.gcc_x86 config/make.def
;
\
fi
RUN
make IS
CLASS
=
D
RUN
make IS
CLASS
=
D
ENTRYPOINT
./bin/is.D.x
# Copying the required libraries (shared object files) to a convenient location so that it can be copied into the
# main container in the second build stage.
RUN
mkdir
-p
/lib-copy
&&
find /usr/lib
-name
"*.so.*"
-exec
cp
{}
/lib-copy
\;
FROM
BASEIMAGE
COPY
--from=build_node_perf_npb_is /NPB3.3.1/NPB3.3-OMP/bin/is.D.x /
COPY
--from=build_node_perf_npb_is /lib-copy /lib-copy
ENV
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/lib-copy"
ENTRYPOINT
/is.D.x
test/images/node-perf/tf-wide-deep/Dockerfile
View file @
c8cc7b1c
...
@@ -14,11 +14,14 @@
...
@@ -14,11 +14,14 @@
FROM
BASEIMAGE
FROM
BASEIMAGE
RUN
apt-get update
&&
apt-get
install
-y
gi
t
time
RUN
apt-get update
&&
apt-get
install
-y
wge
t
time
RUN
pip
install
tensorflow
RUN
pip
install
tensorflow
RUN
git clone https://github.com/tensorflow/models.git
WORKDIR
$HOME/models/official/wide_deep
RUN
wget https://github.com/tensorflow/models/archive/v1.9.0.tar.gz
\
RUN
git checkout tags/v1.9.0
&&
tar
xzf v1.9.0.tar.gz
\
ENV
PYTHONPATH $PYTHONPATH:$HOME/models
&&
rm
-f
v1.9.0.tar.gz
WORKDIR
$HOME/models-1.9.0/official/wide_deep
ENV
PYTHONPATH $PYTHONPATH:$HOME/models-1.9.0
ENTRYPOINT
python ./wide_deep.py
ENTRYPOINT
python ./wide_deep.py
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