remove redundant dockerfiles
This commit is contained in:
parent
10e565559b
commit
0f38de55f9
|
@ -1,3 +0,0 @@
|
|||
FROM xena/base
|
||||
|
||||
ADD https://ecsft.cern.ch/dist/cling/current/cling-Ubuntu-14.04-64bit-2dc1fdc217.tar.bz2 /opt/cling
|
|
@ -1,6 +0,0 @@
|
|||
FROM deis/go
|
||||
|
||||
RUN mkdir /tmp/build && \
|
||||
mkdir -p /go/src/github.com/coreos && cd /go/src/github.com/coreos && \
|
||||
git clone http://github.com/coreos/fleet && cd fleet && \
|
||||
./build && cp bin/* /tmp/build
|
|
@ -1,3 +0,0 @@
|
|||
FROM xena/base
|
||||
|
||||
RUN apt-get update && apt-get install haskell-platform -y
|
|
@ -1,9 +0,0 @@
|
|||
FROM ubuntu:14.04
|
||||
|
||||
RUN apt-get install build-essential
|
||||
RUN apt-get install git
|
||||
RUN apt-get install bison flex
|
||||
RUN apt-get install checkinstall
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
FROM flitter/init
|
||||
MAINTAINER Xena <xena@yolo-swag.com>
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make curl git-core
|
||||
|
||||
# build/install OpenResty
|
||||
ENV SRC_DIR /opt
|
||||
ENV OPENRESTY_VERSION 1.7.7.1
|
||||
ENV OPENRESTY_PREFIX /app/openresty
|
||||
ENV LAPIS_VERSION 1.0.6
|
||||
|
||||
RUN cd $SRC_DIR && curl -LO http://openresty.org/download/ngx_openresty-$OPENRESTY_VERSION.tar.gz \
|
||||
&& tar xzf ngx_openresty-$OPENRESTY_VERSION.tar.gz && cd ngx_openresty-$OPENRESTY_VERSION \
|
||||
&& ./configure --prefix=$OPENRESTY_PREFIX \
|
||||
--with-luajit \
|
||||
--with-http_realip_module \
|
||||
&& make && make install && rm -rf ngx_openresty-$OPENRESTY_VERSION*
|
||||
|
||||
RUN apt-get -qqy install luarocks
|
||||
|
||||
RUN luarocks install moonrocks && \
|
||||
moonrocks install --server=http://rocks.moonscript.org/manifests/leafo lapis $LAPIS_VERSION && \
|
||||
moonrocks install moonscript && \
|
||||
moonrocks install lapis-console && \
|
||||
moonrocks install yaml
|
||||
|
||||
ADD prepare.moon /app/prepare.moon
|
||||
ADD lapis /etc/service/lapis/run
|
||||
ENTRYPOINT /sbin/my_init
|
||||
|
||||
ONBUILD ADD app.yaml /app/
|
||||
ONBUILD RUN moon /app/prepare.moon /app/app.yaml
|
||||
ONBUILD ADD . /app/src
|
||||
ONBUILD RUN moonc /app/src
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /app/src
|
||||
|
||||
export LAPIS_OPENRESTY=/app/openresty/nginx/sbin/nginx
|
||||
|
||||
lapis server docker
|
|
@ -1,24 +0,0 @@
|
|||
yaml = require "yaml"
|
||||
|
||||
manifest_path = ...
|
||||
|
||||
error "Missing manifest_path" if not manifest_path
|
||||
|
||||
strip = (str) -> str\match "^%s*(.-)%s*$"
|
||||
|
||||
read_cmd = (cmd) ->
|
||||
f = io.popen cmd, "r"
|
||||
with strip f\read"*a"
|
||||
f\close!
|
||||
|
||||
fin = io.open manifest_path, "r"
|
||||
app = yaml.load fin\read "*a"
|
||||
fin\close!
|
||||
|
||||
print "installing dependencies for #{app.name}..."
|
||||
|
||||
for _, dep in pairs app.dependencies
|
||||
print "installing dependency #{dep}"
|
||||
read_cmd "moonrocks install #{dep}"
|
||||
|
||||
print "done!"
|
|
@ -1,3 +0,0 @@
|
|||
FROM xena/alpine
|
||||
|
||||
RUN apk update && apk upgrade && apk add lua
|
|
@ -1,15 +0,0 @@
|
|||
FROM ubuntu:14.04
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -qy upgrade
|
||||
RUN apt-get install -yq cron
|
||||
|
||||
# Add init stuff
|
||||
ADD init/init /init
|
||||
ADD scripts/rc /etc/rc
|
||||
|
||||
# Test app
|
||||
ADD app /app
|
||||
|
||||
ENTRYPOINT /init
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
all:
|
||||
@echo "Please choose a make rule"
|
||||
|
||||
init:
|
||||
(cd init && make build)
|
||||
|
||||
build:
|
||||
@make init
|
||||
docker build -t xena/niinix .
|
||||
|
||||
clean:
|
||||
cd init && make clean
|
||||
docker rmi xena/niinix
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
while true ; do
|
||||
echo "Hello at $(date)"
|
||||
sleep 5
|
||||
done
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "This is the entry script at $(date)"
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
build:
|
||||
gcc -static -o init ./init.c
|
||||
|
||||
clean:
|
||||
rm init
|
|
@ -1,60 +0,0 @@
|
|||
// https://gist.github.com/rofl0r/6168719
|
||||
|
||||
#define _XOPEN_SOURCE 700
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void properly_clean_up(int signum)
|
||||
{
|
||||
printf("init: %s Asked to die, terminating all processes\n", ctime(NULL));
|
||||
|
||||
kill(-1, SIGTERM);
|
||||
|
||||
pid_t err;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 10; i++) {
|
||||
err = waitpid(-1, 0, 0);
|
||||
|
||||
if(err == -1) {
|
||||
sleep(1);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
printf("init: %s Killing all remaining processes. See you on the other side.\n", ctime(NULL));
|
||||
|
||||
kill(-1, SIGKILL);
|
||||
exit(signum);
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
sigset_t set;
|
||||
int status;
|
||||
|
||||
signal(SIGINT, properly_clean_up);
|
||||
signal(SIGTERM, properly_clean_up);
|
||||
|
||||
if (getpid() != 1) return 1;
|
||||
|
||||
sigfillset(&set);
|
||||
sigprocmask(SIG_BLOCK, &set, 0);
|
||||
|
||||
if (fork()) for (;;) wait(&status);
|
||||
|
||||
sigprocmask(SIG_UNBLOCK, &set, 0);
|
||||
|
||||
setsid();
|
||||
setpgid(0, 0);
|
||||
|
||||
printf("init: %s starting up", ctime(NULL));
|
||||
|
||||
return execve("/etc/rc", (char *[]){ "rc", 0 }, (char *[]){ 0 });
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start cron
|
||||
cron -L 7
|
||||
|
||||
# Some deis containers need an extra entry step
|
||||
if [ -x /app/bin/entry ]
|
||||
then
|
||||
/app/bin/entry
|
||||
|
||||
exitstatus="$?"
|
||||
|
||||
if [ "$exitstatus" != "0" ]; then
|
||||
echo "The entry script failed"
|
||||
exit $exitstatus
|
||||
fi
|
||||
fi
|
||||
|
||||
# Start the main container process
|
||||
/app/bin/boot
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
FROM xena/base
|
||||
|
||||
RUN apt-get update && apt-get -y install python3.4-dev python3.4
|
|
@ -1,3 +0,0 @@
|
|||
FROM xena/base
|
||||
|
||||
RUN setuser xena go get github.com/andlabs/qo
|
|
@ -1,5 +0,0 @@
|
|||
FROM xena/base
|
||||
|
||||
ADD . /var/setup/xena/rust
|
||||
|
||||
RUN /var/setup/xena/rust/rustup.sh
|
461
rust/rustup.sh
461
rust/rustup.sh
|
@ -1,461 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
||||
# file at the top-level directory of this distribution and at
|
||||
# http://rust-lang.org/COPYRIGHT.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
# option. This file may not be copied, modified, or distributed
|
||||
# except according to those terms.
|
||||
|
||||
|
||||
msg() {
|
||||
echo "rustup: $1"
|
||||
}
|
||||
|
||||
step_msg() {
|
||||
msg
|
||||
msg "$1"
|
||||
msg
|
||||
}
|
||||
|
||||
warn() {
|
||||
echo "rustup: WARNING: $1"
|
||||
}
|
||||
|
||||
err() {
|
||||
echo "rustup: error: $1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
need_ok() {
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
err "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
putvar() {
|
||||
local T
|
||||
eval T=\$$1
|
||||
eval TLEN=\${#$1}
|
||||
if [ $TLEN -gt 35 ]
|
||||
then
|
||||
printf "rustup: %-20s := %.35s ...\n" $1 "$T"
|
||||
else
|
||||
printf "rustup: %-20s := %s %s\n" $1 "$T" "$2"
|
||||
fi
|
||||
}
|
||||
|
||||
probe() {
|
||||
local V=$1
|
||||
shift
|
||||
local P
|
||||
local T
|
||||
for P
|
||||
do
|
||||
T=$(which $P 2>&1)
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
VER0=$($P --version 2>/dev/null | head -1 \
|
||||
| sed -e 's/[^0-9]*\([vV]\?[0-9.]\+[^ ]*\).*/\1/' )
|
||||
if [ $? -eq 0 -a "x${VER0}" != "x" ]
|
||||
then
|
||||
VER="($VER0)"
|
||||
else
|
||||
VER=""
|
||||
fi
|
||||
break
|
||||
else
|
||||
VER=""
|
||||
T=""
|
||||
fi
|
||||
done
|
||||
eval $V=\$T
|
||||
putvar $V "$VER"
|
||||
}
|
||||
|
||||
probe_need() {
|
||||
local V=$1
|
||||
probe $*
|
||||
eval VV=\$$V
|
||||
if [ -z "$VV" ]
|
||||
then
|
||||
err "needed, but unable to find any of: $*"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
valopt() {
|
||||
VAL_OPTIONS="$VAL_OPTIONS $1"
|
||||
|
||||
local OP=$1
|
||||
local DEFAULT=$2
|
||||
shift
|
||||
shift
|
||||
local DOC="$*"
|
||||
if [ $HELP -eq 0 ]
|
||||
then
|
||||
local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
|
||||
local V="CFG_${UOP}"
|
||||
eval $V="$DEFAULT"
|
||||
for arg in $CFG_ARGS
|
||||
do
|
||||
if echo "$arg" | grep -q -- "--$OP="
|
||||
then
|
||||
val=$(echo "$arg" | cut -f2 -d=)
|
||||
eval $V=$val
|
||||
fi
|
||||
done
|
||||
putvar $V
|
||||
else
|
||||
if [ -z "$DEFAULT" ]
|
||||
then
|
||||
DEFAULT="<none>"
|
||||
fi
|
||||
OP="${OP}=[${DEFAULT}]"
|
||||
printf " --%-30s %s\n" "$OP" "$DOC"
|
||||
fi
|
||||
}
|
||||
|
||||
opt() {
|
||||
BOOL_OPTIONS="$BOOL_OPTIONS $1"
|
||||
|
||||
local OP=$1
|
||||
local DEFAULT=$2
|
||||
shift
|
||||
shift
|
||||
local DOC="$*"
|
||||
local FLAG=""
|
||||
|
||||
if [ $DEFAULT -eq 0 ]
|
||||
then
|
||||
FLAG="enable"
|
||||
else
|
||||
FLAG="disable"
|
||||
DOC="don't $DOC"
|
||||
fi
|
||||
|
||||
if [ $HELP -eq 0 ]
|
||||
then
|
||||
for arg in $CFG_ARGS
|
||||
do
|
||||
if [ "$arg" = "--${FLAG}-${OP}" ]
|
||||
then
|
||||
OP=$(echo $OP | tr 'a-z-' 'A-Z_')
|
||||
FLAG=$(echo $FLAG | tr 'a-z' 'A-Z')
|
||||
local V="CFG_${FLAG}_${OP}"
|
||||
eval $V=1
|
||||
putvar $V
|
||||
fi
|
||||
done
|
||||
else
|
||||
if [ ! -z "$META" ]
|
||||
then
|
||||
OP="$OP=<$META>"
|
||||
fi
|
||||
printf " --%-30s %s\n" "$FLAG-$OP" "$DOC"
|
||||
fi
|
||||
}
|
||||
|
||||
flag() {
|
||||
BOOL_OPTIONS="$BOOL_OPTIONS $1"
|
||||
|
||||
local OP=$1
|
||||
shift
|
||||
local DOC="$*"
|
||||
|
||||
if [ $HELP -eq 0 ]
|
||||
then
|
||||
for arg in $CFG_ARGS
|
||||
do
|
||||
if [ "$arg" = "--${OP}" ]
|
||||
then
|
||||
OP=$(echo $OP | tr 'a-z-' 'A-Z_')
|
||||
local V="CFG_${OP}"
|
||||
eval $V=1
|
||||
putvar $V
|
||||
fi
|
||||
done
|
||||
else
|
||||
if [ ! -z "$META" ]
|
||||
then
|
||||
OP="$OP=<$META>"
|
||||
fi
|
||||
printf " --%-30s %s\n" "$OP" "$DOC"
|
||||
fi
|
||||
}
|
||||
|
||||
validate_opt () {
|
||||
for arg in $CFG_ARGS
|
||||
do
|
||||
isArgValid=0
|
||||
for option in $BOOL_OPTIONS
|
||||
do
|
||||
if test --disable-$option = $arg
|
||||
then
|
||||
isArgValid=1
|
||||
fi
|
||||
if test --enable-$option = $arg
|
||||
then
|
||||
isArgValid=1
|
||||
fi
|
||||
if test --$option = $arg
|
||||
then
|
||||
isArgValid=1
|
||||
fi
|
||||
done
|
||||
for option in $VAL_OPTIONS
|
||||
do
|
||||
if echo "$arg" | grep -q -- "--$option="
|
||||
then
|
||||
isArgValid=1
|
||||
fi
|
||||
done
|
||||
if [ "$arg" = "--help" ]
|
||||
then
|
||||
echo
|
||||
echo "No more help available for Configure options,"
|
||||
echo "check the Wiki or join our IRC channel"
|
||||
break
|
||||
else
|
||||
if test $isArgValid -eq 0
|
||||
then
|
||||
err "Option '$arg' is not recognized"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
probe_need CFG_CURL curl
|
||||
|
||||
CFG_SRC_DIR="$(cd $(dirname $0) && pwd)/"
|
||||
CFG_SELF="$0"
|
||||
CFG_ARGS="$@"
|
||||
|
||||
HELP=0
|
||||
if [ "$1" = "--help" ]
|
||||
then
|
||||
HELP=1
|
||||
shift
|
||||
echo
|
||||
echo "Usage: $CFG_SELF [options]"
|
||||
echo
|
||||
echo "Options:"
|
||||
echo
|
||||
else
|
||||
step_msg "processing $CFG_SELF args"
|
||||
fi
|
||||
|
||||
OPTIONS=""
|
||||
BOOL_OPTIONS=""
|
||||
VAL_OPTIONS=""
|
||||
|
||||
flag uninstall "only uninstall from the installation prefix"
|
||||
valopt prefix "" "set installation prefix"
|
||||
opt cargo 1 "install cargo with rust"
|
||||
|
||||
if [ $HELP -eq 1 ]
|
||||
then
|
||||
echo
|
||||
exit 0
|
||||
fi
|
||||
|
||||
step_msg "validating $CFG_SELF args"
|
||||
validate_opt
|
||||
|
||||
|
||||
# Platform detection copied from `configure`
|
||||
|
||||
CFG_OSTYPE=$(uname -s)
|
||||
CFG_CPUTYPE=$(uname -m)
|
||||
|
||||
if [ $CFG_OSTYPE = Darwin -a $CFG_CPUTYPE = i386 ]
|
||||
then
|
||||
# Darwin's `uname -s` lies and always returns i386. We have to use sysctl
|
||||
# instead.
|
||||
if sysctl hw.optional.x86_64 | grep -q ': 1'
|
||||
then
|
||||
CFG_CPUTYPE=x86_64
|
||||
fi
|
||||
fi
|
||||
|
||||
# The goal here is to come up with the same triple as LLVM would,
|
||||
# at least for the subset of platforms we're willing to target.
|
||||
|
||||
case $CFG_OSTYPE in
|
||||
|
||||
Linux)
|
||||
CFG_OSTYPE=unknown-linux-gnu
|
||||
;;
|
||||
|
||||
FreeBSD)
|
||||
CFG_OSTYPE=unknown-freebsd
|
||||
;;
|
||||
|
||||
Darwin)
|
||||
CFG_OSTYPE=apple-darwin
|
||||
;;
|
||||
|
||||
MINGW32*)
|
||||
CFG_OSTYPE=pc-mingw32
|
||||
;;
|
||||
# Thad's Cygwin identifers below
|
||||
|
||||
# Vista 32 bit
|
||||
CYGWIN_NT-6.0)
|
||||
CFG_OSTYPE=pc-mingw32
|
||||
CFG_CPUTYPE=i686
|
||||
;;
|
||||
|
||||
# Vista 64 bit
|
||||
CYGWIN_NT-6.0-WOW64)
|
||||
CFG_OSTYPE=w64-mingw32
|
||||
CFG_CPUTYPE=x86_64
|
||||
;;
|
||||
|
||||
# Win 7 32 bit
|
||||
CYGWIN_NT-6.1)
|
||||
CFG_OSTYPE=pc-mingw32
|
||||
CFG_CPUTYPE=i686
|
||||
;;
|
||||
|
||||
# Win 7 64 bit
|
||||
CYGWIN_NT-6.1-WOW64)
|
||||
CFG_OSTYPE=w64-mingw32
|
||||
CFG_CPUTYPE=x86_64
|
||||
;;
|
||||
|
||||
# We do not detect other OS such as XP/2003 using 64 bit using uname.
|
||||
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
|
||||
*)
|
||||
err "unknown OS type: $CFG_OSTYPE"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
case $CFG_CPUTYPE in
|
||||
xscale | arm)
|
||||
CFG_CPUTYPE=arm
|
||||
;;
|
||||
|
||||
x86_64 | x86-64 | x64 | amd64)
|
||||
CFG_CPUTYPE=x86_64
|
||||
;;
|
||||
|
||||
*)
|
||||
err "unknown CPU type: $CFG_CPUTYPE"
|
||||
esac
|
||||
|
||||
HOST_TRIPLE="${CFG_CPUTYPE}-${CFG_OSTYPE}"
|
||||
|
||||
# Is this a triple we have nightlies for?
|
||||
case $HOST_TRIPLE in
|
||||
|
||||
x86_64-unknown-linux-gnu)
|
||||
;;
|
||||
|
||||
i686-unknown-linux-gnu)
|
||||
;;
|
||||
|
||||
x86_64-apple-darwin)
|
||||
;;
|
||||
|
||||
i686-apple-darwin)
|
||||
;;
|
||||
|
||||
*)
|
||||
err "rustup.sh doesn't work for host $HOST_TRIPLE"
|
||||
|
||||
esac
|
||||
|
||||
msg "host triple: ${HOST_TRIPLE}"
|
||||
|
||||
PACKAGE_NAME=rust-nightly
|
||||
PACKAGE_NAME_AND_TRIPLE="${PACKAGE_NAME}-${HOST_TRIPLE}"
|
||||
TARBALL_NAME="${PACKAGE_NAME_AND_TRIPLE}.tar.gz"
|
||||
REMOTE_TARBALL="https://static.rust-lang.org/dist/${TARBALL_NAME}"
|
||||
TMP_DIR="./rustup-tmp-install"
|
||||
LOCAL_TARBALL="${TMP_DIR}/${TARBALL_NAME}"
|
||||
LOCAL_INSTALL_DIR="${TMP_DIR}/${PACKAGE_NAME_AND_TRIPLE}"
|
||||
LOCAL_INSTALL_SCRIPT="${LOCAL_INSTALL_DIR}/install.sh"
|
||||
|
||||
CARGO_PACKAGE_NAME=cargo-nightly
|
||||
CARGO_PACKAGE_NAME_AND_TRIPLE="${CARGO_PACKAGE_NAME}-${HOST_TRIPLE}"
|
||||
CARGO_TARBALL_NAME="${CARGO_PACKAGE_NAME_AND_TRIPLE}.tar.gz"
|
||||
CARGO_REMOTE_TARBALL="https://static.rust-lang.org/cargo-dist/${CARGO_TARBALL_NAME}"
|
||||
CARGO_LOCAL_TARBALL="${TMP_DIR}/${CARGO_TARBALL_NAME}"
|
||||
CARGO_LOCAL_INSTALL_DIR="${TMP_DIR}/${CARGO_PACKAGE_NAME_AND_TRIPLE}"
|
||||
CARGO_LOCAL_INSTALL_SCRIPT="${CARGO_LOCAL_INSTALL_DIR}/install.sh"
|
||||
|
||||
rm -Rf "${TMP_DIR}"
|
||||
need_ok "failed to remove temporary installation directory"
|
||||
|
||||
mkdir -p "${TMP_DIR}"
|
||||
need_ok "failed to create create temporary installation directory"
|
||||
|
||||
msg "downloading rust installer"
|
||||
"${CFG_CURL}" "${REMOTE_TARBALL}" > "${LOCAL_TARBALL}"
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -Rf "${TMP_DIR}"
|
||||
err "failed to download installer"
|
||||
fi
|
||||
|
||||
if [ -z "${CFG_DISABLE_CARGO}" ]; then
|
||||
msg "downloading cargo installer"
|
||||
"${CFG_CURL}" "${CARGO_REMOTE_TARBALL}" > "${CARGO_LOCAL_TARBALL}"
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -Rf "${TMP_DIR}"
|
||||
err "failed to download cargo installer"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
(cd "${TMP_DIR}" && tar xzf "${TARBALL_NAME}")
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -Rf "${TMP_DIR}"
|
||||
err "failed to unpack installer"
|
||||
fi
|
||||
|
||||
MAYBE_UNINSTALL=
|
||||
if [ -n "${CFG_UNINSTALL}" ]
|
||||
then
|
||||
MAYBE_UNINSTALL="--uninstall"
|
||||
fi
|
||||
|
||||
MAYBE_PREFIX=
|
||||
if [ -n "${CFG_PREFIX}" ]
|
||||
then
|
||||
MAYBE_PREFIX="--prefix=${CFG_PREFIX}"
|
||||
fi
|
||||
|
||||
sh "${LOCAL_INSTALL_SCRIPT}" "${MAYBE_UNINSTALL}" "${MAYBE_PREFIX}"
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -Rf "${TMP_DIR}"
|
||||
err "failed to install Rust"
|
||||
fi
|
||||
|
||||
if [ -z "${CFG_DISABLE_CARGO}" ]; then
|
||||
(cd "${TMP_DIR}" && tar xzf "${CARGO_TARBALL_NAME}")
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -Rf "${TMP_DIR}"
|
||||
err "failed to unpack cargo installer"
|
||||
fi
|
||||
|
||||
sh "${CARGO_LOCAL_INSTALL_SCRIPT}" "${MAYBE_UNINSTALL}" "${MAYBE_PREFIX}"
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -Rf "${TMP_DIR}"
|
||||
err "failed to install Cargo"
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -Rf "${TMP_DIR}"
|
||||
need_ok "couldn't rm temporary installation directory"
|
|
@ -1,10 +0,0 @@
|
|||
FROM xena/starbound:seed
|
||||
|
||||
EXPOSE 21025
|
||||
|
||||
USER starbound
|
||||
|
||||
ADD start.sh /home/starbound/
|
||||
|
||||
CMD /home/starbound/start.sh
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
FROM ubuntu:14.04
|
||||
|
||||
RUN apt-get install python2.7 python-dev python-pip git python-sqlite python-twisted-words
|
||||
|
||||
RUN git clone https://github.com/CarrotsAreMediocre/StarryPy
|
||||
|
||||
USER root
|
||||
|
||||
RUN pip install -r StarryPy/requirements.txt
|
||||
|
||||
USER starbound
|
||||
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
cd /home/starbound/starbound/linux64
|
||||
./starbound_server
|
Loading…
Reference in New Issue