Skip to content
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e0d79a2
feat: create docker dev environment
ojeytonwilliams Nov 16, 2020
a8fd9e1
feat: add devuser to sudoers
ojeytonwilliams Nov 18, 2020
5c7a9fe
docs: add Docker guide to CONTRIBUTING.md
ojeytonwilliams Nov 18, 2020
8f1d402
fix: clarify which code is dev only
ojeytonwilliams Nov 19, 2020
f1018d7
fix(docs): add missing Docker guide
ojeytonwilliams Nov 19, 2020
c1af9ce
fix: include attribution
ojeytonwilliams Nov 19, 2020
3ea09ac
Merge branch 'main' of https://github.com/freeCodeCamp/devdocs into f…
tsengia Jun 22, 2024
8a035d9
use multi-stage Dockerfile to reduce code
tsengia Jun 22, 2024
4309b44
remove .env file
tsengia Jun 22, 2024
f3e1f38
create vscode devcontainer.json file
tsengia Jun 22, 2024
aec83bb
Add .gitattributes to work with Windows better
tsengia Jun 22, 2024
f59abb9
get devcontainer to work with VS Code
tsengia Jun 22, 2024
1220943
Remove compose file
tsengia Jun 22, 2024
2fb2b27
Get docker-from-docker working with VS Code
tsengia Jun 22, 2024
69c8f1f
ignore already downloaded docs when building docker image
tsengia Jun 22, 2024
7f8aa22
make downloaded docs a docker volume
tsengia Jun 22, 2024
da5a924
dynamically get docs origin and production host instead of hard coding
tsengia Jun 22, 2024
9526ddf
changes to get local deployment working
tsengia Jun 22, 2024
45f80ae
fixed referencing wrong variable name
tsengia Jun 22, 2024
a1936a2
Set production docker container CMD
tsengia Jun 22, 2024
dfadd78
switch to building docker image with all docs downloaded
tsengia Jun 23, 2024
d83e30b
Get offline runtime docker image to work
tsengia Jun 23, 2024
3dfd66e
switch to build based devcontainer
tsengia Jun 24, 2024
cf708b2
Add oxipng
tsengia Jun 24, 2024
153d4e6
Add steps to build the runtime docker image
tsengia Jun 24, 2024
d345794
Update docker commands with more examples
tsengia Jun 24, 2024
3c19102
add EditorConfig extension, add code spell words
tsengia Jun 24, 2024
769e9d2
clean up before PR
tsengia Jun 24, 2024
3b25a10
Remove // from docs origin settings and only serve docs pages from ap…
tsengia Jun 28, 2024
ecf5a0d
Merge branch 'main' of https://github.com/freeCodeCamp/devdocs into f…
tsengia Jul 21, 2025
954d1c5
update dockerfile
tsengia Jul 21, 2025
0d9da42
fix docker build warnings
tsengia Jul 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add devuser to sudoers
  • Loading branch information
ojeytonwilliams committed Nov 18, 2020
commit a8fd9e1e3633398ddcf7c57d664296fc0b3c8997
6 changes: 4 additions & 2 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ ARG USER_ID
ARG GROUP_ID

RUN apt-get update && \
apt-get -y install git nodejs libcurl4 && \
apt-get -y install git nodejs libcurl4 sudo && \
gem install bundler

# Create the dev user and set up a home dir
# Create the dev user, add them to sudoers and set up a home dir
RUN if [ ${USER_ID:-0} -ne 0 ] && [ ${GROUP_ID:-0} -ne 0 ]; then \
groupadd -g ${GROUP_ID} devuser &&\
useradd -l -u ${USER_ID} -g devuser devuser &&\
usermod -aG sudo devuser &&\
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers &&\
install -d -m 0755 -o devuser -g devuser /home/devuser &&\
chown --changes --silent --no-dereference --recursive \
--from=33:33 ${USER_ID}:${GROUP_ID} \
Expand Down