Skip to content

Commit

Permalink
Docker: Fix convention test
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Feb 4, 2022
1 parent 4013113 commit 5c1a921
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 36 deletions.
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_aiida
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_aiida.sh .
RUN ./install_aiida.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_ase
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_ase.sh .
RUN ./install_ase.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_conventions
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_conventions.sh .
RUN ./install_conventions.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_doxygen
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_doxygen.sh .
RUN ./install_doxygen.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_gromacs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_gromacs.sh .
RUN ./install_gromacs.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_i-pi
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_i-pi.sh .
RUN ./install_i-pi.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_manual
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_manual.sh .
RUN ./install_manual.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/Dockerfile.test_python
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ WORKDIR /workspace
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh

# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

COPY ./tools/docker/scripts/install_python.sh .
RUN ./install_python.sh

Expand Down
4 changes: 0 additions & 4 deletions tools/docker/generate_dockerfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ def generic_test(name: str) -> str:
COPY ./tools/docker/scripts/install_basics.sh .
RUN ./install_basics.sh
# Some buggy Python packages open utf8 files in text mode.
# As workaround we set locale.getpreferredencoding() to utf8.
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"
COPY ./tools/docker/scripts/install_{name}.sh .
RUN ./install_{name}.sh
Expand Down
4 changes: 4 additions & 0 deletions tools/docker/scripts/install_aiida.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ apt-get install -qq --no-install-recommends \
ssh
rm -rf /var/lib/apt/lists/*

# Some buggy Python packages open utf8 files in text mode.
# As a workaround we set locale.getpreferredencoding() to utf8.
export LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

# install dependencies of aiida-cp2k
cd /opt/
git clone --quiet https://github.com/aiidateam/aiida-cp2k.git
Expand Down
4 changes: 4 additions & 0 deletions tools/docker/scripts/test_aiida.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ else
exit 0
fi

# Some buggy Python packages open utf8 files in text mode.
# As a workaround we set locale.getpreferredencoding() to utf8.
export LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

echo -e "\n========== Installing AiiDA-CP2K plugin =========="
cd /opt/aiida-cp2k/
git pull
Expand Down

0 comments on commit 5c1a921

Please sign in to comment.