-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from million12/tidy-up
Code cleanup + Docker + support for few new arguments
- Loading branch information
Showing
6 changed files
with
490 additions
and
510 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# | ||
# million12/linode-coreos-api | ||
# | ||
|
||
FROM centos:centos7 | ||
MAINTAINER Przemyslaw Ozgo linux@ozgo.info, Marcin Ryzycki marcin@m12.io | ||
|
||
ENV GITHUB_KEY key | ||
ENV LINODE_KEY key | ||
|
||
RUN \ | ||
yum install -y epel-release && \ | ||
yum update -y && \ | ||
yum install -y epel-release && \ | ||
yum install -y git pwgen sshpass openssh sudo jq && \ | ||
yum clean all | ||
|
||
ADD . /tmp/linodeapi/ | ||
ADD . /usr/local/share/ | ||
|
||
RUN \ | ||
mv /tmp/linodeapi/linode /usr/local/bin/linode && \ | ||
mv /tmp/linodeapi/linodeapi /usr/local/bin/linodeapi && \ | ||
mv /tmp/linodeapi/linode_api_macro /etc/linode_api_macro && \ | ||
rm -rf /tmp/linodeapi | ||
chmod +x /usr/local/share/linode && \ | ||
ln -s /usr/local/share/linode /usr/local/bin/linode | ||
|
||
ENV TERM xterm-256color | ||
|
||
ENTRYPOINT ["/usr/local/bin/linode"] | ||
CMD ["--help"] |
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
Oops, something went wrong.