Skip to content

Commit

Permalink
docker: Add Fedora support to install_basics.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Mar 5, 2020
1 parent 56f8c45 commit 9ec25a5
Showing 1 changed file with 34 additions and 12 deletions.
46 changes: 34 additions & 12 deletions tools/docker/scripts/install_basics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,42 @@

# author: Ole Schuett

# install Ubuntu packages
apt-get update -qq
apt-get install -qq --no-install-recommends \
ca-certificates \
locales \
git \
less \
nano \
rsync \
wget
if grep -q "Ubuntu" /etc/os-release ; then
echo -n "Installing Ubuntu packages... "
apt-get update -qq
apt-get install -qq --no-install-recommends \
ca-certificates \
locales \
git \
less \
nano \
rsync \
wget
rm -rf /var/lib/apt/lists/*
locale-gen "en_US.UTF-8"
echo "done."

rm -rf /var/lib/apt/lists/*
elif grep -q "Fedora" /etc/os-release ; then
echo -n "Installing Fedora packages... "
dnf -qy install \
ca-certificates \
git \
less \
nano \
rsync \
wget
dnf -q clean all
echo "done."

locale-gen "en_US.UTF-8"
else
echo "Unknown Linux distribution."
exit 1

fi

# clone cp2k repository
echo -n "Cloning cp2k repository... "
git clone --quiet --recursive --single-branch -b master https://github.com/cp2k/cp2k.git /workspace/cp2k
echo "done."

#EOF

0 comments on commit 9ec25a5

Please sign in to comment.