Compare commits

...

10 Commits
master ... dev

Author SHA1 Message Date
santic-zombie b505ad5d5a New 6 months ago
santic-zombie 16e9a65fb1 - Added new APKBUILD for deploying ruby-gems 2 years ago
santic-zombie 01b098ee80 RM depricated files 2 years ago
santic-zombie 6a940d30c9 MV README 2 years ago
santic-zombie 6e372a5d4e Changes in structure 2 years ago
santic-zombie c6e95bcc08 APKBUILD small changes 2 years ago
santic-zombie d6437fcf63 Formated text files 2 years ago
santic-zombie 38c26d3580 - Fixed services; \n -Changed APKBUILD 2 years ago
santic-zombie 12c741a477 Small Fixes 2 years ago
santic-zombie 0182e0adf3 New patches, README addings 2 years ago
  1. 20
      README.md
  2. 46
      opennebula
  3. 36
      opennebula-flow
  4. 36
      opennebula-gate
  5. 36
      opennebula-hem
  6. 28
      opennebula-novnc
  7. 57
      opennebula-rubygems/APKBUILD
  8. 36
      opennebula-scheduler
  9. 30
      opennebula-sunstone
  10. 88
      opennebula/APKBUILD
  11. 22
      opennebula/Gruntfile.patch
  12. 48
      opennebula/opennebula
  13. 30
      opennebula/opennebula-flow
  14. 30
      opennebula/opennebula-gate
  15. 30
      opennebula/opennebula-hem
  16. 28
      opennebula/opennebula-novnc
  17. 30
      opennebula/opennebula-scheduler
  18. 28
      opennebula/opennebula-ssh-agent
  19. 31
      opennebula/opennebula-sunstone
  20. 0
      opennebula/opennebula.logrotate
  21. 0
      opennebula/opennebula.post-deinstall
  22. 0
      opennebula/opennebula.post-install
  23. 0
      opennebula/opennebula.post-upgrade
  24. 0
      opennebula/opennebula.pre-deinstall
  25. 0
      opennebula/opennebula.pre-install
  26. 13
      opennebula/package.patch
  27. 0
      opennebula/svn.patch
  28. 82
      txt/README.md

@ -1,5 +1,7 @@
# APKBUILD
## Prepare
```
# apk add alpine-sdk sudo
# visudo
@ -18,3 +20,21 @@
```
abuild-keygen -a -i
```
```
apk add shadow
```
```
useradd -m -g cloud -c "OpenNebula administrator account" -s /bin/ash oneadmin
```
## Build
```
abuild checksum
```
```
abuild -r
```

@ -1,46 +0,0 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula management"
command="/usr/bin/oned"
command_args="-f"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
need mariadb
after syslog networking localmount netmount
want opennebula-scheduler opennebula-hem opennebula-ssh-agent
}
start_pre() {
/bin/mkdir -p /var/log/one
/bin/mkdir -p /var/lock/one
/bin/mkdir -p /run/one
/bin/chown $command_user -R /var/log/one /run/one /var/lock/one
/usr/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula.logrotate
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start -- $command_args
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--retry TERM/10/KILL/10 \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}
stop_post() {
/bin/rm -f /var/lock/one/one
/usr/share/one/follower_cleanup
}

@ -1,36 +0,0 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Flow Service"
command="/usr/bin/ruby /usr/lib/one/oneflow/oneflow-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
after syslog networking netmount opennebula
}
start_pre() {
/bin/mkdir -p /var/log/one
/bin/mkdir -p /var/lock/one
/bin/mkdir -p /run/one
/bin/chown $command_user -R /var/log/one /run/one /var/lock/one
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -1,36 +0,0 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Gate Daemon"
command="/usr/bin/ruby /usr/lib/one/onegate/onegate-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
after syslog networking netmount opennebula
}
start_pre() {
/bin/mkdir -p /var/log/one
/bin/mkdir -p /var/lock/one
/bin/mkdir -p /run/one
/bin/chown $command_user -R /var/log/one /run/one /var/lock/one
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -1,36 +0,0 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Hook Execution Service"
command="/usr/bin/ruby /usr/lib/one/onehem/onehem-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
after syslog networking netmount opennebula
}
start_pre() {
/bin/mkdir -p /var/log/one
/bin/mkdir -p /var/lock/one
/bin/mkdir -p /run/one
/bin/chown $command_user -R /var/log/one /run/one /var/lock/one
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -1,28 +0,0 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula noVNC Server"
command="/usr/bin/novnc-server"
command_user="oneadmin:cloud"
supervisor="supervise-daemon"
depend() {
before opennebula-sunstone
after syslog networking netmount
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon \
--exec $command \
--user $command_user \
--start -- start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
$command stop
/bin/rm -f /var/lock/one/.novnc.lock
eend $?
}

@ -0,0 +1,57 @@
# Contributor: Santic <email@santic-zombie.ru>
# Maintainer: Santic <email@santic-zombie.ru>
pkgname=opennebula-rubygems
pkgver=6.4.0
pkgrel=1
pkgdesc="Ruby dependencies for OpenNebula (Community Edition)"
url="https://opennebula.io/"
arch="x86_64"
options="!check"
license="Apache"
depends="augeas
augeas-libs
libcurl
libffi
libgcc
libpq
libssl1.1
libstdc++
libxslt
opennebula
ruby
ruby-augeas
ruby-libs
ruby-pg
ruby-rake
sqlite-libs
libxml2"
makedepends="augeas-dev
curl-dev
g++
gcc
libffi-dev
libpq-dev
libxml2-dev
libxslt-dev
make
mariadb-dev
openssl-dev
patch
ruby-dev
sqlite-dev
sudo"
source=""
builddir="$srcdir/"
build() {
cd "opennebula-rubygems-${pkgver}"
bundle config set --local path "$srcdir/gems"
bundle install --gemfile /usr/share/one/Gemfile
}
package() {
cd "opennebula-rubygems-${pkgver}"
install -D -m755 "${srcdir}/opennebula" "${pkgdir}/etc/init.d/opennebula"
}

@ -1,36 +0,0 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Cloud Scheduler Daemon"
command="/usr/bin/mm_sched"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
after syslog networking netmount opennebula
}
start_pre() {
/bin/mkdir -p /var/log/one
/bin/mkdir -p /var/lock/one
/bin/mkdir -p /run/one
/bin/chown $command_user -R /var/log/one /run/one /var/lock/one
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -1,30 +0,0 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Web UI Server"
command="/usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
after syslog networking netmount opennebula
want opennebula-novnc
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -1,65 +1,77 @@
# Contributor: Santic <email@santic-zombie.ru>
# Maintainer: Santic <email@santic-zombie.ru>
pkgname=opennebula
pkgver=6.2.2
pkgver=6.4.0
pkgrel=1
pkgdesc="OpenNebula Server and Scheduler (Community Edition)"
url="https://opennebula.io/"
arch="x86_64"
options="!check"
license="Apache"
depends="augeas
augeas-libs
curl
czmq
g++
gnutls
libpq
g++
libcurl
libffi
libgcc
libvncserver
libnsl
libpg_query
libpq
libssl1.1
libstdc++
libxml2
libxslt
logrotate
ronn
mariadb
mariadb-client
mariadb-server-utils
npm
xmlrpc-c
libxml2
xmlrpc-c
openssl
ruby
ruby-augeas
ruby-bundler
ruby-libs
ruby-nokogiri
ruby-pg
ruby-rexml
ruby-xmlrpc
ruby-bundler
ruby-pg
ruby-augeas
shadow
sqlite"
sqlite
sqlite-libs
sqlite-static
xmlrpc-c"
makedepends="alpine-sdk
augeas-dev
bash
curl-dev
czmq-dev
gnutls-dev
python2
libnsl-dev
libpq-dev
libvncserver-dev
libxml2-dev
linux-headers
libnsl-dev
openssl-dev
sqlite-dev
mariadb-dev
make
openssl-dev
python3
ronn
ruby-dev
libxml2-dev
xmlrpc-c-dev
scons
make
curl-dev
libpq-dev"
sqlite-dev
xmlrpc-c-dev"
install="${pkgname}.pre-install
${pkgname}.post-install
${pkgname}.post-upgrade
${pkgname}.pre-deinstall
${pkgname}.post-deinstall"
source="https://github.com/OpenNebula/one/archive/release-${pkgver}.tar.gz
source="https://downloads.opennebula.io/packages/opennebula-${pkgver}/opennebula-${pkgver}.tar.gz
Gruntfile.patch
package.patch
svn.patch
opennebula
opennebula-scheduler
@ -74,21 +86,29 @@ source="https://github.com/OpenNebula/one/archive/release-${pkgver}.tar.gz
builddir="$srcdir/"
prepare() {
cd "one-release-${pkgver}"
cd "opennebula-${pkgver}"
patch -p0 < "${srcdir}/Gruntfile.patch"
patch -p0 < "${srcdir}/package.patch"
patch -p0 < "${srcdir}/svn.patch"
npm config set prefix '~/.local/'
prefix=~/.local/
npm config set python python2.7
rm -rf "${HOME}/.npm-packages"
mkdir "${HOME}/.npm-packages"
npm config set prefix "${HOME}/.npm-packages"
NPM_PACKAGES="${HOME}/.npm-packages"
export PATH="$PATH:$NPM_PACKAGES/bin"
npm install bower grunt -g
}
build() {
cd "one-release-${pkgver}"
cd "opennebula-${pkgver}"
CXXFLAGS="--std=c++14" scons -j2 new_xmlrpc=yes mysql=yes sqlite=yes sunstone=yes systemd=no
}
package() {
cd "one-release-${pkgver}"
cd "opennebula-${pkgver}"
install -D -m755 "${srcdir}/opennebula" "${pkgdir}/etc/init.d/opennebula"
install -D -m755 "${srcdir}/opennebula-scheduler" "${pkgdir}/etc/init.d/opennebula-scheduler"
@ -102,17 +122,3 @@ package() {
DESTDIR="${pkgdir}" ./install.sh -u oneadmin -g cloud
}
sha512sums="
292a1a3a823d4ec3e6cdec59b0f9fbf81125d0541bc8a2e234343f59fc9c4e7f2f2f1cd14463211a8c750bb902021dc1389a47927ad491a1cee2fa064307e813 release-6.2.2.tar.gz
1e2c5da5c2ab49ab355550568985cc538d591198343ec468277d0bb5106275fb4cf7e2acdc26868c79803313a4aec935568370b723bce3384c7e056f26fa9066 svn.patch
121d43da2299a8f347dfff2124253617d2d4f175bafe5f14687a58e72ada60f08fbdcba1b5dbdc48434c226a6f75b46eb2e9203f8549733d1393ca348f5a00ff opennebula
c3d85c11a1e6f9ae05a45378ba398ac68ee2a8b961f0f24e394bbdf92c83c8fcc64c5619819afc1b2e563607e99bd6402744fba396bd3c6c4f48c0a8b09f897e opennebula-scheduler
6c5127d4b515777bba83236623066f300f0f8a6086a19848b72edb9cdb74fd906595d02b971de91d67585e79d8d419e5a66d3cc69c55d898561c4a5f74a303d3 opennebula-novnc
99510f519200d16b65c6fef50cfbc6f88950453759b8e2eab3e729bc8329fbb605dbe7fa6c11febccac6ded0cd1328aef9d1137028a0083e0a9de0a51d357dfc opennebula-sunstone
17a0d28b60301c59fc4a6fbeaf759c5d075981b000ef93f67e151f16c0ec339de3e0b4b6ead1ca33903428394abdea40eac907a419f136ba7a1b6fa8965e1422 opennebula-hem
1ac94e85f3ebe43e51d87a75560d7d7aa48f291326d7b049381329435a7ed575fbfd1dbf23ff9c055bbb900994aa61885a2b7efb7c3e92c21d1d203b8d047231 opennebula-flow
fdb1eeacb5767cae78829295551a0e924e31d6b47f899fb341652607b8efe5b630c0233835e940f5d8577632d223ab46a87eee2ebce36a1b43077aa561ac47e3 opennebula-gate
121d43da2299a8f347dfff2124253617d2d4f175bafe5f14687a58e72ada60f08fbdcba1b5dbdc48434c226a6f75b46eb2e9203f8549733d1393ca348f5a00ff opennebula-ssh-agent
a6c33276b527e8aafd39815688dbdf8dbfaa4e1ab5b708e44b48c6b358bba2dd4c2225a7e4647b438a2396ed6fd159a3421fe2798f0f954e250d3bef8a57a742 opennebula.logrotate
"

@ -0,0 +1,22 @@
Index: src/sunstone/public/Gruntfile.js
--- src/sunstone/public/Gruntfile.js
+++ src/sunstone/public/Gruntfile.js
@@ -14,6 +14,8 @@
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
+const sass = require('node-sass');
+
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
@@ -24,7 +26,8 @@
},
dist: {
options: {
- outputStyle: "compressed"
+ outputStyle: "compressed",
+ implementation: sass
},
files: {
"css/app.css": "scss/app.scss"

@ -0,0 +1,48 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula management"
command="/usr/bin/oned"
command_args="-f"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
need mariadb
after syslog networking localmount netmount
before opennebula-scheduler opennebula-hem opennebula-sunstone \
opennebula-flow opennebula-gate
# opennebula-ssh-agent
}
start_pre() {
/bin/mkdir -p /var/log/one
/bin/mkdir -p /var/lock/one
/bin/mkdir -p /run/one
/bin/chown $command_user -R /var/log/one /run/one /var/lock/one
/usr/sbin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/opennebula.logrotate
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start -- $command_args
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--retry TERM/10/KILL/10 \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}
stop_post() {
/bin/rm -f /var/lock/one/one
/usr/share/one/follower_cleanup
}

@ -0,0 +1,30 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Flow Service"
command="/usr/bin/ruby /usr/lib/one/oneflow/oneflow-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
need opennebula
after syslog networking netmount
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -0,0 +1,30 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Gate Daemon"
command="/usr/bin/ruby /usr/lib/one/onegate/onegate-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
need opennebula
after syslog networking netmount
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -0,0 +1,30 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Hook Execution Service"
command="/usr/bin/ruby /usr/lib/one/onehem/onehem-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
need opennebula
after syslog networking netmount
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -0,0 +1,28 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula noVNC Server"
command="/usr/bin/novnc-server"
command_user="oneadmin:cloud"
supervisor="supervise-daemon"
depend() {
before opennebula-sunstone
after syslog networking netmount
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon \
--exec $command \
--user $command_user \
--start -- start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
$command stop
/bin/rm -f /var/lock/one/.novnc.lock
eend $?
}

@ -0,0 +1,30 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Cloud Scheduler Daemon"
command="/usr/bin/mm_sched"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
need opennebula
after syslog networking netmount
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -23,24 +23,24 @@ start_pre() {
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start -- $command_args
eend $?
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start -- $command_args
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--retry TERM/10/KILL/10 \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--retry TERM/10/KILL/10 \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}
stop_post() {
/bin/rm -f /var/lock/one/one
/usr/share/one/follower_cleanup
/bin/rm -f /var/lock/one/one
/usr/share/one/follower_cleanup
}

@ -0,0 +1,31 @@
#!/sbin/openrc-run
name=$RC_SVCNAME
description="OpenNebula Web UI Server"
command="/usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"
depend() {
need opennebula
after syslog networking netmount
want opennebula-novnc
}
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --background \
--exec $command \
--make-pidfile --pidfile $pidfile --user $command_user \
--start
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--exec $command \
--pidfile $pidfile --user $command_user
eend $?
}

@ -0,0 +1,13 @@
Index: src/sunstone/public/package.json
--- src/sunstone/public/package.json
+++ src/sunstone/public/package.json
@@ -6,7 +6,7 @@
"grunt-cli": "1.3.2",
"grunt-contrib-requirejs": "1.0.0",
"grunt-contrib-watch": "1.1.0",
- "grunt-sass": "2.1.0",
- "node-sass": "4.14.1"
+ "grunt-sass": "3.1.0",
+ "node-sass": "7.0.1"
}
}

@ -0,0 +1,82 @@
Some notes
```
adduser oneadmin
apk add libvncserver-dev libvncserver \
gnutls gnutls-dev libnsl libnsl-dev \
alpine-sdk linux-headers openssl-dev \
make npm ronn sqlite-dev czmq-dev \
mariadb-dev mariadb-server-utils mariadb-client \
ruby-dev libxml2 libxml2-dev libxml2 libxml2-dev \
xmlrpc-c xmlrpc-c-dev g++ scons bash
apk add python2 ruby-nokogiri ruby-rexml \
ruby-xmlrpc ruby-bundler ruby-pg ruby-augeas augeas-dev \
libpg_query curl-dev libpq-dev
git clone https://github.com/OpenNebula/one.git
cd one
vim src/svncterm_server/genfont.c
```
#include <stdint.h>
typedef uint16_t u_int16_t;
```
#scons -j2 sqlite=no mysql=yes systemd=no svncterm=yes
npm config set python python2.7
npm install bower grunt -g
CXXFLAGS="--std=c++14" scons -j2 new_xmlrpc=yes mysql=yes sqlite=yes sunstone=yes systemd=no
cd /root/one/share/man/
./build.sh
cd ~/one/src/fireedge/
./build.sh
cd ~/one
./install.sh -u oneadmin -g oneadmin
# from local user
bundler install --gemfile /usr/share/one/Gemfile
apk add shadow
usermod -m -d /var/lib/one oneadmin
mkdir -p /var/lib/one/.one/
echo 'oneadmin:oneadm1n' >> /var/lib/one/.one/one_auth
chown oneadmin:oneadmin -R /var/log/one /var/lib/one /run/one /run/lock/one
###########################################
!!! apt install libczmq-dev !!!
apk add python2
npm config set python python2.7
cd /usr/lib/one/sunstone/public
CXXFLAGS="--std=c++14" npm install
# не обязательно(?)
npm audit fix --force
./build
echo 'oneadmin:black' > /var/lib/one/.one/one_auth
```
Loading…
Cancel
Save