Skip to content

Commit

Permalink
squash: cases/chrome,firefox
Browse files Browse the repository at this point in the history
---
s

fonts-wqy-zenhei

RUN apt update; apt -y install chromium;

up

wqy, desktop

firefox

f

f

f

cases: chromium
  • Loading branch information
sam authored and huapox committed Aug 7, 2021
1 parent 836ef01 commit d7e14e5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/cases/Dockerfile.chromium
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;
7 changes: 7 additions & 0 deletions deploy/cases/Dockerfile.firefox
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*;
22 changes: 22 additions & 0 deletions deploy/cases/img_build.sh
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

0 comments on commit d7e14e5

Please sign in to comment.