Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Rémy Mozul
FortHon
Commits
174dcb07
Commit
174dcb07
authored
Apr 06, 2016
by
frozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOCKER] Add a docker to launch firefox
parent
514166d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
firefox_docker/Dockerfile
firefox_docker/Dockerfile
+19
-0
firefox_docker/cmd_launch
firefox_docker/cmd_launch
+2
-0
No files found.
firefox_docker/Dockerfile
0 → 100644
View file @
174dcb07
FROM
ubuntu:14.04
RUN
apt-get update
&&
apt-get
install
-y
firefox
# Replace 1000 with your user / group id
RUN
export
uid
=
1001
gid
=
1001
&&
\
mkdir
-p
/home/developer
&&
\
echo
"developer:x:
${
uid
}
:
${
gid
}
:Developer,,,:/home/developer:/bin/bash"
>>
/etc/passwd
&&
\
echo
"developer:x:
${
uid
}
:"
>>
/etc/group
&&
\
echo
"developer ALL=(ALL) NOPASSWD: ALL"
>
/etc/sudoers.d/developer
&&
\
chmod
0440 /etc/sudoers.d/developer
&&
\
chown
${
uid
}
:
${
gid
}
-R
/home/developer
USER
developer
ENV
HOME /home/developer
CMD
/usr/bin/firefox
# Building command
## docker build -t firefox .
firefox_docker/cmd_launch
0 → 100644
View file @
174dcb07
docker run --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix firefox
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment