Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add make clean in CDK Dockerfile #201

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ test: libpecos
clean:
rm ${VFLAG} -rf ./build ./dist ./*.egg-info
rm -f ./pecos/core/*.so .coverage*
rm -f ./pecos/_version.py
python3 -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
python3 -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ ADD README.md /pecos-source/README.md
ADD Makefile /pecos-source/Makefile
ADD setup.py /pecos-source/setup.py
ADD pecos /pecos-source/pecos/
RUN cd /pecos-source && make libpecos
RUN cd /pecos-source && make clean && make libpecos

# Setup user
RUN groupadd -r amazon && useradd --no-log-init -r -g amazon ecs-user
RUN echo "ecs-user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
ENV USER ecs-user
ENV HOME /home/$USER
RUN echo $HOME
RUN chown -R ecs-user:amazon /home
RUN mkdir -p $HOME && chown -R ecs-user:amazon $HOME

# Enable password-less SSH
ENV SSHDIR $HOME/.ssh
Expand Down