Skip to content

Commit eb871fa

Browse files
Setting local for testing
Signed-off-by: Lukasz Gryglicki <[email protected]>
1 parent dc1a83b commit eb871fa

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

images/Dockerfile.test

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Uses Go v1.12 and Postgres 11
22
FROM golang:1.12
3-
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y ca-certificates openssh-client git curl make sudo
3+
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y ca-certificates openssh-client git curl make sudo locales locales-all
4+
ENV LANG en_US.UTF-8
5+
ENV LC_ALL en_US.UTF-8
6+
ENV LANGUAGE en_US.UTF-8
47
ADD tests/ACCC4CF8.asc .
58
RUN sudo apt-key add ACCC4CF8.asc
69
ADD tests/pgdg.list /etc/apt/sources.list.d/pgdg.list

tests/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
export LANGUAGE="en_US.UTF-8"
3+
export LANG="en_US.UTF-8"
4+
export LC_ALL="en_US.UTF-8"
25
service postgresql start || exit 1
36
sudo -u postgres createdb gha || exit 2
47
sudo -u postgres psql gha -c "create user gha_admin with password 'pwd'" || exit 3

0 commit comments

Comments
 (0)