-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--- s fonts-wqy-zenhei RUN apt update; apt -y install chromium; up wqy, desktop firefox f f f cases: chromium
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM infrastlabs/docker-headless:latest | ||
RUN apt.sh fonts-wqy-zenhei; | ||
RUN apt update; apt -y install chromium; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM infrastlabs/docker-headless:latest | ||
RUN apt.sh \ | ||
firefox-esr; | ||
RUN apt.sh \ | ||
fonts-wqy-zenhei | ||
RUN cp /usr/share/applications/firefox-esr.desktop /home/headless/Desktop; \ | ||
cd /home/headless/Desktop; chown headless:headless firefox-esr*; chmod +x firefox-esr*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
#echo "export DOCKER_REGISTRY_USER_sdsir=xxx" >> /etc/profile | ||
#echo "export DOCKER_REGISTRY_PW_sdsir=xxx" >> /etc/profile | ||
|
||
source /etc/profile | ||
export |grep DOCKER_REG | ||
repo=registry.cn-shenzhen.aliyuncs.com | ||
echo "${DOCKER_REGISTRY_PW_infrastSubUser2}" |docker login --username=${DOCKER_REGISTRY_USER_infrastSubUser2} --password-stdin $repo | ||
|
||
ns=infrastlabs | ||
# cache="--no-cache" | ||
# pull="--pull" | ||
ver=box06 #02: +full; 04: bins; | ||
|
||
|
||
img="docker-headless:chromium" | ||
docker build $cache $pull -t $ns/$img -f Dockerfile.chromium . | ||
docker push $ns/$img | ||
|
||
# img="docker-headless:firefox" | ||
# docker build $cache $pull -t $ns/$img -f Dockerfile.firefox . | ||
# docker push $ns/$img |