blob: 36a27078e3ccafdd42ec75593d6afb4f0ea54af8 [file] [log] [blame]
Sergio Slobodrian4d307102017-04-24 10:19:00 -04001#!/bin/bash
2
3docker run --rm -d --name pbuild -p 9999:9000 portainer/portainer
4rm -fr tmp_portainer
5mkdir tmp_portainer
6docker cp pbuild:/ tmp_portainer
7
8sed -i -e '
9s~constant("DOCKER_ENDPOINT","api/docker")~constant("DOCKER_ENDPOINT","docker/api/docker")~
10s~constant("CONFIG_ENDPOINT","api/settings")~constant("CONFIG_ENDPOINT","docker/api/settings")~
11s~constant("AUTH_ENDPOINT","api/auth")~constant("AUTH_ENDPOINT","docker/api/auth")~
12s~constant("USERS_ENDPOINT","api/users")~constant("USERS_ENDPOINT","docker/api/users")~
13s~constant("ENDPOINTS_ENDPOINT","api/endpoints")~constant("ENDPOINTS_ENDPOINT","docker/api/endpoints")~
14s~constant("TEMPLATES_ENDPOINT","api/templates")~constant("TEMPLATES_ENDPOINT","docker/api/templates")~
15' tmp_portainer/js/app.*.js
16
17
18docker build -t voltha/portainer -f docker/Dockerfile.portainer .
19rm -fr tmp_portainer
20docker stop pbuild
21