-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker target to Makefile. This target was created to test Mimixb…
…ox inside Docker.
- Loading branch information
Showing
5 changed files
with
57 additions
and
5 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
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,17 @@ | ||
FROM golang | ||
|
||
# Create mimixbox symbolic link in container. | ||
COPY mimixbox /usr/local/bin/ | ||
RUN mimixbox --full-install /usr/local/bin/ | ||
|
||
# Set root password | ||
RUN echo 'root:password' | chpasswd | ||
|
||
# Create new user | ||
RUN useradd mimixbox -m | ||
RUN echo 'mimixbox:password' |chpasswd | ||
|
||
# If you want to administrator privileges, you become the root user | ||
# RUN echo "mimixbox ALL=(ALL) ALL" >> /etc/sudoers | ||
|
||
CMD ["su", "-", "mimixbox"] |
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
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
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