mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
* chore(build-system): update dev-toolkit * chore(build-system): update dev-toolkit * chore(build-system): update dev-toolkit Dockerfile * chore(build-system): update gruntfile * chore(build-system): gruntfile update * chore(build-system): better support for private git repositories * Update toolkit.Dockerfile * merge develop into toolkit-update * merge develop into toolkit-update
This commit is contained in:
parent
c39c7010be
commit
e8a6f15210
3 changed files with 130 additions and 13 deletions
|
@ -7,6 +7,7 @@ var arch = os.arch();
|
|||
if (arch === 'x64') arch = 'amd64';
|
||||
|
||||
var portainer_data = '${PORTAINER_DATA:-/tmp/portainer}';
|
||||
var portainer_root = process.env.PORTAINER_PROJECT ? process.env.PORTAINER_PROJECT : process.env.PWD;
|
||||
|
||||
module.exports = function (grunt) {
|
||||
loadGruntTasks(grunt, {
|
||||
|
@ -174,7 +175,7 @@ function shell_build_binary_azuredevops(p, a) {
|
|||
function shell_run_container() {
|
||||
return [
|
||||
'docker rm -f portainer',
|
||||
'docker run -d -p 8000:8000 -p 9000:9000 -v $(pwd)/dist:/app -v ' +
|
||||
'docker run -d -p 8000:8000 -p 9000:9000 -v ' + portainer_root + '/dist:/app -v ' +
|
||||
portainer_data +
|
||||
':/data -v /var/run/docker.sock:/var/run/docker.sock:z -v /var/run/docker.sock:/var/run/alternative.sock:z -v /tmp:/tmp --name portainer portainer/base /app/portainer',
|
||||
].join(';');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue