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
FROM centos:6 | |
RUN yum -y update && \ | |
yum -y install curl gcc gcc-c++ libaio-devel git && \ | |
yum clean all && \ | |
rm -r -f /var/cache/yum/* | |
COPY getgo.sh /opt/ | |
RUN cd /opt && chmod +x ./getgo.sh && ./getgo.sh && mkdir /usr/local/go | |
RUN groupadd -g 1000 somebody && useradd -m -u 1000 -g 1000 somebody && chown -R somebody:somebody /usr/local/go | |
ENV GOROOT=/opt/go | |
ENV GOPATH=/usr/local/go |
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
#!/bin/bash | |
getversion() { | |
curl https://nodejs.org/en/ -o index.html | |
export version=$(cat index.html | grep Current | tail -n 1 | awk -F' v' '{ print $2 }' | awk -F' Current' '{ print $1 }') | |
} | |
cleandownload() { | |
rm index.html | |
rm node.tar.xz |
OlderNewer