Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ShellB3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ray Garcia
ShellB3
Commits
8a26eac6
Commit
8a26eac6
authored
4 years ago
by
Ray Garcia
Browse files
Options
Downloads
Patches
Plain Diff
revised Dockerfile to have more args
parent
f10a16a2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Docker/Dockerfile
+9
-9
9 additions, 9 deletions
Docker/Dockerfile
with
9 additions
and
9 deletions
Docker/
shellb3-cspp-py36.
Dockerfile
→
Docker/Dockerfile
+
9
−
9
View file @
8a26eac6
# docker build . -
f shellb3-cspp-py36.
Dockerfile -t shellb3-cspp-py36:latest
# docker build . -
-build-arg TRIM=cspp --build-arg PYTHON_VERSION=36 -f
Dockerfile -t shellb3-cspp-py36:latest
# docker run -e SHELLB3_ARCHIVE_DIR=/dock -it --rm -v $HOME/dock:/dock -w /opt/shellb3-cspp-py36/ShellB3 shellb3-cspp-py36 /bin/bash -l -c "unset LANG; bash shallbethree.sh bin_dist"
# docker run -e SHELLB3_ARCHIVE_DIR=/dock -it --rm -v $HOME/dock:/dock -w /opt/shellb3-cspp-py36/ShellB3 shellb3-cspp-py36 /bin/bash -l -c "unset LANG; bash shallbethree.sh bin_dist"
FROM
centos:6
FROM
centos:6
RUN
yum
-y
install
gcc-gfortran gcc-c++ unzip perl patch byacc bison flex glibc-devel.i686 glibc-devel.x86_64 xz epel-release
RUN
yum
-y
install
gcc-gfortran gcc-c++ unzip perl patch byacc bison flex glibc-devel.i686 glibc-devel.x86_64 xz epel-release
...
@@ -11,16 +11,16 @@ RUN yum -y install git wget perl-TermReadKey \
...
@@ -11,16 +11,16 @@ RUN yum -y install git wget perl-TermReadKey \
RUN
test
-d
/opt
||
mkdir
/opt
RUN
test
-d
/opt
||
mkdir
/opt
RUN
test
-d
/work
||
mkdir
/work
RUN
test
-d
/work
||
mkdir
/work
ARG
BORT=develop
ARG
BORT=develop
RUN
cd
/opt
&&
git clone https://gitlab.ssec.wisc.edu/rayg/ShellB3.git
--branch
${
BORT
}
--single-branch
--depth
1 shellb3-cspp-py36
RUN
ln
-s
shellb3-cspp-py36/ShellB3 /opt/ShellB3
RUN
ln
-s
/opt/shellb3-cspp-py36 /work/ShellB3
ENV
MAKEFLAGS=-j12
# was 37 originally but changed back due to ssl 1.0.2 constraint
# was 37 originally but changed back due to ssl 1.0.2 constraint
ARG
PYTHON_VERSION=36
ARG
PYTHON_VERSION=36
ARG
TRIM=cspp
RUN
cd
/opt
&&
git clone https://gitlab.ssec.wisc.edu/rayg/ShellB3.git
--branch
${
BORT
}
--single-branch
--depth
1 shellb3-
${
TRIM
}
-py
${
PYTHON_VERSION
}
RUN
ln
-s
shellb3-
${
TRIM
}
-py
${
PYTHON_VERSION
}
/ShellB3 /opt/ShellB3
RUN
ln
-s
/opt/shellb3-
${
TRIM
}
-py
${
PYTHON_VERSION
}
/work/ShellB3
ENV
MAKEFLAGS=-j12
ARG
LINUXCPUFLAGS="-msse2 -fPIC"
ARG
LINUXCPUFLAGS="-msse2 -fPIC"
WORKDIR
/opt/shellb3-
cspp-py36
/ShellB3
WORKDIR
/opt/shellb3-
${TRIM}-py${PYTHON_VERSION}
/ShellB3
RUN
bash
-e
shallbethree.sh mk_gcc7
RUN
bash
-e
shallbethree.sh mk_gcc7
ARG
SB3_TRIM=cspp
RUN
bash
-e
shallbethree.sh mk_
${
TRIM
}
RUN
bash
-e
shallbethree.sh mk_
${
SB3_TRIM
}
WORKDIR
/work
WORKDIR
/work
RUN
echo export
HOSTNAME
=
$(
perl
-ne
'/.*"HOSTNAME": "(\w+)",/ && print "$1";'
</opt/shellb3-
cspp-py36
/ShellB3/build/.build_env.json
)
>
/etc/profile.d/99-build-host.sh
RUN
echo export
HOSTNAME
=
$(
perl
-ne
'/.*"HOSTNAME": "(\w+)",/ && print "$1";'
</opt/shellb3-
${
TRIM
}
-py
${
PYTHON_VERSION
}
/ShellB3/build/.build_env.json
)
>
/etc/profile.d/99-build-host.sh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment