moving locale settings inside script/sabayon-configuration

This commit is contained in:
mudler
2015-11-13 10:59:19 +01:00
parent dc93022cbe
commit 3c28c02f26
3 changed files with 4 additions and 7 deletions
-3
View File
@@ -3,7 +3,6 @@ FROM sabayon/gentoo-stage3-base-amd64
MAINTAINER mudler <mudler@sabayonlinux.org>
# Set locales to en_US.UTF-8
RUN echo "en_US.UTF-8 UTF-8 " >> /etc/locale.gen && locale-gen && eselect locale set en_US.utf8 && env-update && source /etc/profile
ENV LC_ALL=en_US.UTF-8
# Upgrading portage and installing necessary packages
@@ -43,5 +42,3 @@ WORKDIR /root
# Define default command.
CMD ["bash"]
+1 -1
View File
@@ -5,7 +5,7 @@ machine:
dependencies:
override:
- docker info
- docker pull sabayon/base-amd64
- docker build -t sabayon/base-amd64 .
- docker export $(docker run -i -t sabayon/base-amd64 true && docker ps -aq | xargs echo | cut -d ' ' -f 1) | docker import - sabayon/base-amd64-squashed
test:
+3 -3
View File
@@ -7,6 +7,8 @@ for f in /etc/env.d/02locale /etc/locale.conf; do
echo LC_ALL=en_US.UTF-8 >> "${f}"
done
echo "en_US.UTF-8 UTF-8 " >> /etc/locale.gen && locale-gen && eselect locale set en_US.utf8 && env-update && source /etc/profile
# Defyning /usr/local/portage configuration
mkdir /usr/local/portage
mkdir -p /usr/local/portage/metadata/
@@ -35,12 +37,10 @@ eselect python set python2.7
# Specifying a gentoo profile
eselect profile set default/linux/amd64/13.0/desktop
# default to opendns for next stage(s)
# default for next stage(s)
echo "nameserver 8.8.8.8" > /etc/resolv.conf
# set default shell
chsh -s /bin/bash
rm -rf /etc/make.profile