From 2dfb271feefbfa71cecb88013a9b4b7aa42c840b Mon Sep 17 00:00:00 2001 From: Ilya Averyanov Date: Sun, 26 Jun 2022 21:35:38 +0300 Subject: [PATCH] remove homemade docker build infrastructure --- Makefile | 28 ---------------------------- README.md | 15 +-------------- build.sh | 15 --------------- build/19/Dockerfile | 14 -------------- build/20/Dockerfile | 14 -------------- build/21/Dockerfile | 14 -------------- build/22/Dockerfile | 14 -------------- 7 files changed, 1 insertion(+), 113 deletions(-) delete mode 100644 Makefile delete mode 100755 build.sh delete mode 100644 build/19/Dockerfile delete mode 100644 build/20/Dockerfile delete mode 100644 build/21/Dockerfile delete mode 100644 build/22/Dockerfile diff --git a/Makefile b/Makefile deleted file mode 100644 index 756e019..0000000 --- a/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -MIX=mix -SMPPSEND_BIN=smppsend - -VERSIONS=19 20 21 22 - -all: clean_bin $(VERSIONS) release - -clean_bin: - rm -rf bin - -release: - tar czf bin.tar.gz bin - -escript: clean dependencies - $(MIX) escript.build - mv smppsend $(SMPPSEND_BIN) - -dependencies: - $(MIX) deps.get - $(MIX) deps.compile - -clean: - rm -rf _build - $(MIX) deps.clean --all - $(MIX) clean - -$(VERSIONS): %: - ./build.sh $@ diff --git a/README.md b/README.md index 0ac9d01..8cd3679 100644 --- a/README.md +++ b/README.md @@ -6,23 +6,10 @@ Simple utility for testing SMSC connections. It allows to bind to SMSCs, send `s ## Build -If you want just to build `smppsend` executable for you current platform, just run: - ```bash -mix do deps.get, escript.build +mix do deps.get,escript.build ``` -If you want to make a Linux-compatible binary for specific versions of OTP platform -(for example, OTP 19), run - -```bash -make VERSIONS=19 -``` - -You need [Docker](https://www.docker.com/) installed to build. - -You can also download precompiled Linux-compatible binaries from “[Releases](https://github.com/funbox/smppsend/releases)” page. - ## Usage See: diff --git a/build.sh b/build.sh deleted file mode 100755 index 7eb5a8e..0000000 --- a/build.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -VERSION=$1 - -DOCKER_DIR=build/$VERSION -IMAGE_TAG=smppsend-$VERSION - -SMPPSEND=$(pwd) -BIN_DIR=bin - -SMPPSEND_BIN=$BIN_DIR/smppsend-$VERSION - -mkdir -p $BIN_DIR -docker build -t $IMAGE_TAG $DOCKER_DIR -docker run -v $SMPPSEND:/smppsend -w /smppsend $IMAGE_TAG make escript SMPPSEND_BIN=$SMPPSEND_BIN diff --git a/build/19/Dockerfile b/build/19/Dockerfile deleted file mode 100644 index 3d5cace..0000000 --- a/build/19/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM centos:centos6 - -MAINTAINER Ilya Averyanov - -ENV LANG=en_US.UTF-8 - -RUN yum install -y https://yum.kaos.st/kaos-repo-latest.el6.noarch.rpm -RUN yum install -y unzip git erlang19 - -RUN curl -fSL -o elixir-precompiled.zip https://github.com/elixir-lang/elixir/releases/download/v1.5.1/Precompiled.zip - -RUN unzip -d /usr/local elixir-precompiled.zip -RUN mix local.hex --force -RUN mix local.rebar --force diff --git a/build/20/Dockerfile b/build/20/Dockerfile deleted file mode 100644 index b62970b..0000000 --- a/build/20/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM centos:centos6 - -MAINTAINER Ilya Averyanov - -ENV LANG=en_US.UTF-8 - -RUN yum install -y https://yum.kaos.st/kaos-repo-latest.el6.noarch.rpm -RUN yum install -y unzip git erlang20 - -RUN curl -fSL -o elixir-precompiled.zip https://github.com/elixir-lang/elixir/releases/download/v1.5.1/Precompiled.zip - -RUN unzip -d /usr/local elixir-precompiled.zip -RUN mix local.hex --force -RUN mix local.rebar --force diff --git a/build/21/Dockerfile b/build/21/Dockerfile deleted file mode 100644 index d807b2f..0000000 --- a/build/21/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM centos:centos6 - -MAINTAINER Alex Mikka - -ENV LANG=en_US.UTF-8 - -RUN yum install -y https://yum.kaos.st/kaos-repo-latest.el6.noarch.rpm -RUN yum install -y unzip git erlang21 - -RUN curl -fSL -o elixir-precompiled.zip https://github.com/elixir-lang/elixir/releases/download/v1.9.1/Precompiled.zip - -RUN unzip -d /usr/local elixir-precompiled.zip -RUN mix local.hex --force -RUN mix local.rebar --force diff --git a/build/22/Dockerfile b/build/22/Dockerfile deleted file mode 100644 index 65635dc..0000000 --- a/build/22/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM centos:centos6 - -MAINTAINER Ilya Averyanov - -ENV LANG=en_US.UTF-8 - -RUN yum install -y https://yum.kaos.st/kaos-repo-latest.el6.noarch.rpm -RUN yum install -y unzip git erlang22 --enablerepo kaos-testing - -RUN curl -fSL -o elixir-precompiled.zip https://github.com/elixir-lang/elixir/releases/download/v1.9.1/Precompiled.zip - -RUN unzip -d /usr/local elixir-precompiled.zip -RUN mix local.hex --force -RUN mix local.rebar --force