Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile7
-rw-r--r--README.md13
-rwxr-xr-xbatch.sh13
-rw-r--r--docker-armhf/build-container.sh45
-rw-r--r--docker-armhf/debian-ncp/Dockerfile2
-rw-r--r--docker-armhf/docker-env.sh44
7 files changed, 16 insertions, 110 deletions
diff --git a/.gitignore b/.gitignore
index e4710861..062bcda8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,5 +7,5 @@ torrent/
armbian/
raspbian_root
raspbian_boot
-docker-armhf/raspbian_docker.img
ncp-web/wizard.cfg
+qemu-arm-static
diff --git a/Makefile b/Makefile
index 460307a4..9e836266 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ lamp-armhf: debian-ncp-armhf
docker build . -f docker-armhf/lamp/Dockerfile -t ownyourbits/lamp-armhf:latest
debian-ncp-armhf:
- docker build . -f docker-armhf/debian-ncp/Dockerfile -t ownyourbits/debian-ncp-armhf:latest
+ docker build --pull . -f docker-armhf/debian-ncp/Dockerfile -t ownyourbits/debian-ncp-armhf:latest
nextcloudpi-x86: nextcloud-x86
@@ -28,10 +28,7 @@ lamp-x86: debian-ncp-x86
docker build . -f docker/lamp/Dockerfile -t ownyourbits/lamp-x86:latest
debian-ncp-x86:
- docker build . -f docker/debian-ncp/Dockerfile -t ownyourbits/debian-ncp-x86:latest
-
-devel:
- docker build . -f docker/devel/Dockerfile -t ownyourbits/nextcloudpi-x86:devel
+ docker build --pull . -f docker/debian-ncp/Dockerfile -t ownyourbits/debian-ncp-x86:latest
# License
#
diff --git a/README.md b/README.md
index 8df1e8bc..76128a56 100644
--- a/README.md
+++ b/README.md
@@ -94,20 +94,13 @@ cd nextcloudpi
./build-SD-armbian.sh odroidxu4 # supported board code name
```
-The docker armhf image can be generated in an ARM environment with docker
+In order to generate the Docker images
```
git clone https://github.com/nextcloud/nextcloudpi.git
cd nextcloudpi
-make
-```
-
-, and for an x86 image, on a x86 environment do
-
-```
-git clone https://github.com/nextcloud/nextcloudpi.git
-cd nextcloudpi
-make nextcloudpi-x86
+make # armhf version
+make nextcloudpi-x86 # x86 version
```
NextCloudPi can be installed in any architecture running the latest Debian
diff --git a/batch.sh b/batch.sh
index 6407ee9e..69965146 100755
--- a/batch.sh
+++ b/batch.sh
@@ -30,7 +30,6 @@ CLEAN=1 ./build-SD-rpi.sh "$IP"
./build-SD-armbian.sh bananapi Bananapi
# Docker x86
-docker pull debian:stretch-slim
make nextcloudpi-x86 && {
docker push ownyourbits/nextcloudpi-x86
docker push ownyourbits/nextcloud-x86
@@ -38,10 +37,14 @@ make nextcloudpi-x86 && {
docker push ownyourbits/debian-ncp-x86
}
-# docker armhf
-[[ -f docker-armhf/raspbian_docker.img ]] || \
- ./installer.sh docker-armhf/docker-env.sh "$IP" raspbian_lite.img # && mv
-./installer.sh docker-armhf/build-container.sh "$IP" docker-armhf/raspbian_docker.img
+# Docker armhf
+[[ -f qemu-arm-static ]] || cp /usr/bin/qemu-arm-static . || echo { "Need qemu-arm-static (and binfmt support) in the system to build the ARM container"; exit 1; }
+make nextcloudpi-armhf && {
+ docker push ownyourbits/nextcloudpi-armhf
+ docker push ownyourbits/nextcloud-armhf
+ docker push ownyourbits/lamp-armhf
+ docker push ownyourbits/debian-ncp-armhf
+}
# License
#
diff --git a/docker-armhf/build-container.sh b/docker-armhf/build-container.sh
deleted file mode 100644
index d7d0eed3..00000000
--- a/docker-armhf/build-container.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-# Build NextCloudPi ARM docker container in a QEMU Raspbian with docker
-#
-# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
-# GPL licensed (see end of file) * Use at your own risk!
-#
-# Usage: ./installer.sh build-container.sh <DHCP QEMU image IP> <image>
-#
-
-
-install()
-{
- [[ -d nextcloudpi ]] || git clone --depth 1 https://github.com/nextcloud/nextcloudpi.git
- cd nextcloudpi
- git pull origin master
- docker pull arm32v7/debian:stretch-slim
- make && {
- docker push ownyourbits/nextcloudpi-armhf
- docker push ownyourbits/nextcloud-armhf
- docker push ownyourbits/lamp-armhf
- docker push ownyourbits/debian-ncp-armhf
- }
-}
-
-configure(){ :; }
-
-cleanup() { :; }
-
-# License
-#
-# This script is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this script; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
-# Boston, MA 02111-1307 USA
diff --git a/docker-armhf/debian-ncp/Dockerfile b/docker-armhf/debian-ncp/Dockerfile
index 2e767e09..48b8ea55 100644
--- a/docker-armhf/debian-ncp/Dockerfile
+++ b/docker-armhf/debian-ncp/Dockerfile
@@ -4,6 +4,8 @@ MAINTAINER Ignacio Núñez Hernanz <nacho@ownyourbits.com>
CMD /bin/bash
+COPY qemu-arm-static /usr/bin
+
RUN mkdir -p /etc/services-available.d /etc/services-enabled.d
COPY docker-common/debian-ncp/run-parts.sh /
diff --git a/docker-armhf/docker-env.sh b/docker-armhf/docker-env.sh
deleted file mode 100644
index 5409f9c3..00000000
--- a/docker-armhf/docker-env.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-# Install docker ARM on Raspbian
-#
-# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
-# GPL licensed (see end of file) * Use at your own risk!
-#
-# Usage: ./installer.sh docker-env.sh <DHCP QEMU image IP> <image>
-#
-
-
-install()
-{
- curl -sSL get.docker.com | sh
- usermod -aG docker pi
-}
-
-configure(){ :; }
-
-cleanup()
-{
- apt-get autoremove
- apt-get clean
- rm /var/lib/apt/lists/* -r
-
- systemctl disable ssh
-}
-
-# License
-#
-# This script is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This script is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this script; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
-# Boston, MA 02111-1307 USA