Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
e7239c2c
Commit
e7239c2c
authored
Feb 21, 2018
by
Elijah Grubb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding framework for rolling custome tcsh fix
parent
d14a0885
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
105 additions
and
5 deletions
+105
-5
clientside/tmcc/linux/docker/dockerfiles/alpine3/basic.sh
clientside/tmcc/linux/docker/dockerfiles/alpine3/basic.sh
+6
-0
clientside/tmcc/linux/docker/dockerfiles/alpine3/buildenv.sh
clientside/tmcc/linux/docker/dockerfiles/alpine3/buildenv.sh
+3
-1
clientside/tmcc/linux/docker/dockerfiles/alpine3/core.sh
clientside/tmcc/linux/docker/dockerfiles/alpine3/core.sh
+4
-2
clientside/tmcc/linux/docker/dockerfiles/alpine3/full.sh
clientside/tmcc/linux/docker/dockerfiles/alpine3/full.sh
+5
-0
clientside/tmcc/linux/docker/dockerfiles/alpine3/runit.sh
clientside/tmcc/linux/docker/dockerfiles/alpine3/runit.sh
+0
-2
clientside/tmcc/linux/docker/dockerfiles/alpine3/tcsh-artifacts.sh
...e/tmcc/linux/docker/dockerfiles/alpine3/tcsh-artifacts.sh
+47
-0
clientside/tmcc/linux/docker/dockerfiles/alpine3/tcsh-packager.sh
...de/tmcc/linux/docker/dockerfiles/alpine3/tcsh-packager.sh
+12
-0
clientside/tmcc/linux/docker/dockerfiles/alpine3/tcsh.sh
clientside/tmcc/linux/docker/dockerfiles/alpine3/tcsh.sh
+28
-0
No files found.
clientside/tmcc/linux/docker/dockerfiles/alpine3/basic.sh
View file @
e7239c2c
...
...
@@ -7,6 +7,12 @@ apk update
# missing iputils-ping package from ubuntu process
apk add openssh-server rsyslog logrotate iproute2 iputils net-tools
sudo
bash
# install our custom fix of tcsh
sh tcsh.sh
# no csh so symlink it to tcsh
ln
-s
/bin/tcsh /bin/csh
## Permissions on these should be the same as the host, so preserve them.
#cp -p /tmp/src/ssh-host-keys/ssh_host* /etc/ssh/
...
...
clientside/tmcc/linux/docker/dockerfiles/alpine3/buildenv.sh
View file @
e7239c2c
...
...
@@ -20,7 +20,9 @@ apk add git ca-certificates bash perl \
gcc make libc-dev byacc libtool openssl-dev
'g++'
\
sudo
python python-dev libpcap-dev boost-dev wget patch flex
ln
-s
/bin/bash /bin/tcsh
# install our custom fix for tcsh
sh tcsh.sh
ln
-s
/bin/tcsh /bin/csh
if
[
-z
"
$EMULABTMPSRC
"
]
;
then
...
...
clientside/tmcc/linux/docker/dockerfiles/alpine3/core.sh
View file @
e7239c2c
...
...
@@ -12,8 +12,10 @@ apk add ca-certificates sudo python wget patch nano file \
perl perl-libwww psmisc bash zsh mksh shadow
\
'g++'
gcc openssl-dev boost
# the apk tcsh doesnt include a csh symlink so we'll add one
ln
-s
/bin/bash /bin/tcsh
# install our custom fix for tcsh
sh tcsh.sh
# no csh so symlink it to tcsh
ln
-s
/bin/tcsh /bin/csh
#
...
...
clientside/tmcc/linux/docker/dockerfiles/alpine3/full.sh
View file @
e7239c2c
...
...
@@ -6,3 +6,8 @@ apk update
# bridge-utils contains brctl command
apk add iproute2 bridge-utils vlan less
# install our custom fix of tcsh
sh tcsh.sh
clientside/tmcc/linux/docker/dockerfiles/alpine3/runit.sh
View file @
e7239c2c
...
...
@@ -13,8 +13,6 @@ set -x
#export LANG=en_US.UTF-8
#export LC_CTYPE=en_US.UTF-8
echo
"runit should be run here..."
apk update
apk add
--allow-untrusted
/tmp/runit
*
.apk
...
...
clientside/tmcc/linux/docker/dockerfiles/alpine3/tcsh-artifacts.sh
0 → 100755
View file @
e7239c2c
#!/bin/sh
#
# Install a working version of tcsh. Currently the apk version does
# not work, so we have to roll our own.
#
set
-x
if
[
-n
"
$DESTDIR
"
]
;
then
export
DESTDIR
=
"
$DESTDIR
/tcsh"
mkdir
-p
$DESTDIR
fi
DIRNAME
=
`
pwd
`
$DIRNAME
/alpine/prepare.sh
apk update
apk add alpine-sdk wget
cd
/tmp
if
[
-z
"
$TCSHSRC
"
]
;
then
apk add git ca-certificates
git clone https://gitlab.flux.utah.edu/grubb/tcsh tcsh
else
mkdir
-p
tcsh
cp
-pR
$TCSHSRC
/
*
tcsh
fi
cd
tcsh/alpine/
mkdir
-p
/var/cache/distfiles
adduser
-D
packager
addgroup packager abuild
chgrp
abuild /var/cache/distfiles
chgrp
-R
abuild ..
chmod
-R
g+w ..
chmod
g+w /var/cache/distfiles
echo
"packager ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
sudo
-u
packager sh
$DIRNAME
/alpine3/tcsh-packager.sh
cd
/tmp/tcsh/x86_64
cp
-p
*
.apk
$DESTDIR
/
exit
0
clientside/tmcc/linux/docker/dockerfiles/alpine3/tcsh-packager.sh
0 → 100644
View file @
e7239c2c
#!/bin/sh
#
# Actually does the package building since root can't build the packages
#
set
-x
# sudo chown packager:packager ~/.abuild/
abuild-keygen
-a
-i
-n
cd
/tmp/tcsh/alpine
abuild
-r
-P
/tmp
clientside/tmcc/linux/docker/dockerfiles/alpine3/tcsh.sh
0 → 100755
View file @
e7239c2c
#!/bin/sh
#
# Install a working version of tcsh. Currently the apk version does
# not work, so we have to roll our own.
#
set
-x
#export LANGUAGE=en_US:en
#export LC_ALL=en_US.UTF-8
#export LANG=en_US.UTF-8
#export LC_CTYPE=en_US.UTF-8
if
[
-e
"/bin/tcsh"
]
;
# tcsh is already installed
exit
0
fi
sh
$DIRNAME
/alpine3/tcsh-artifacts.sh
apk update
apk add
--allow-untrusted
/tmp/tcsh
*
.apk
$DIRNAME
/alpine/cleanup.sh
exit
0
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