Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
containers
eic_container
Commits
ac8c049d
Commit
ac8c049d
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Ps1 preamble
(cherry picked from commit
bbaee3c7
)
parent
0842af24
No related branches found
No related tags found
1 merge request
!201
Add awkward-array package
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
containers/jug/eic-env.sh
+30
-1
30 additions, 1 deletion
containers/jug/eic-env.sh
containers/jug/xl.Dockerfile
+1
-0
1 addition, 0 deletions
containers/jug/xl.Dockerfile
with
32 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
1
View file @
ac8c049d
...
@@ -270,7 +270,7 @@ jug_xl:nightly:
...
@@ -270,7 +270,7 @@ jug_xl:nightly:
-
docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${NIGHTLY_TAG}
-
docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${NIGHTLY_TAG}
-f containers/jug/xl.Dockerfile
-f containers/jug/xl.Dockerfile
--build-arg INTERNAL_TAG=${INTERNAL_TAG}
--build-arg INTERNAL_TAG=${INTERNAL_TAG}
--build-arg JUG_VERSION=nightly-$(date +%Y-%m-%d_%H-%M-%S)-$(git rev-parse HEAD)
--build-arg JUG_VERSION=nightly-$(date +%Y-%m-%d_%H-%M-%S)-$
{INTERNAL_TAG}-$
(git rev-parse HEAD)
containers/jug
containers/jug
-
|
-
|
PUSH_FLAG=""
PUSH_FLAG=""
...
...
This diff is collapsed.
Click to expand it.
containers/jug/eic-env.sh
+
30
−
1
View file @
ac8c049d
...
@@ -6,8 +6,37 @@ for i in /etc/profile.d/*.sh; do
...
@@ -6,8 +6,37 @@ for i in /etc/profile.d/*.sh; do
fi
fi
done
done
export
PS1
=
'eic-shell> \[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
## default PS1 preamble in case we can't find better info
PS1_PREAMBLE
=
'eic-shell> '
## try to guess who we are
## note: we use sigils for the following cases:
## - no sigil for nightly builds (jug_xl> )
## - (*) for master builds (jug_xl*> )
## - (+) for stable (versioned) (jug_xl+> )
## - (?) for unstable (MR) (jug_xl?> )
if
[
-f
/etc/jug_info
]
;
then
container
=
$(
grep
-e
'jug_'
/etc/jug_info |
tail
-n
1 |
awk
'{print($2);}'
)
container
=
${
container
%
:
}
## jug_xl
version
=
$(
grep
-e
'jug_'
/etc/jug_info |
tail
-n
1 |
awk
'{print($3);}'
)
if
[
!
-z
${
container
}
]
;
then
if
[[
$version
=
~
'unstable'
]]
;
then
sigil
=
"?"
elif
[[
$version
=
~
'testing'
]]
;
then
sigil
=
"*"
elif
[[
$version
=
~
'nightly'
]]
;
then
sigil
=
""
else
# stable
sigil
=
"+"
fi
PS1_PREAMBLE
=
"
${
container
}${
sigil
}
> "
unset
sigil
fi
unset
version
unset
container
fi
export
PS1
=
${
PS1_PREAMBLE
}
'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
export
LS_COLORS
=
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33'
export
LS_COLORS
=
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33'
unset
PS1_PREAMBLE
## redefine ls and less as functions, as this is something we
## redefine ls and less as functions, as this is something we
## can import into our plain bash --norc --noprofile session
## can import into our plain bash --norc --noprofile session
...
...
This diff is collapsed.
Click to expand it.
containers/jug/xl.Dockerfile
+
1
−
0
View file @
ac8c049d
...
@@ -143,3 +143,4 @@ RUN mkdir -p /opt/campaigns
...
@@ -143,3 +143,4 @@ RUN mkdir -p /opt/campaigns
https://eicweb.phy.anl.gov/EIC/campaigns/condor.git
\
https://eicweb.phy.anl.gov/EIC/campaigns/condor.git
\
&&
git clone
-b
${
CAMPAIGNS_SLURM_VERSION
}
--depth
1
\
&&
git clone
-b
${
CAMPAIGNS_SLURM_VERSION
}
--depth
1
\
https://eicweb.phy.anl.gov/EIC/campaigns/slurm.git
https://eicweb.phy.anl.gov/EIC/campaigns/slurm.git
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