mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(templates): introduce templates management (#2017)
This commit is contained in:
parent
e7939a5384
commit
61c285bd2e
63 changed files with 3489 additions and 637 deletions
|
@ -31,6 +31,7 @@ module.exports = function (grunt) {
|
|||
'clean:all',
|
||||
'before-copy',
|
||||
'copy:assets',
|
||||
'copy:templates',
|
||||
'after-copy'
|
||||
]);
|
||||
grunt.registerTask('build', [
|
||||
|
@ -78,6 +79,7 @@ module.exports = function (grunt) {
|
|||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
root: 'dist',
|
||||
distdir: 'dist/public',
|
||||
shippedDockerVersion: '18.03.1-ce',
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
@ -163,6 +165,11 @@ gruntfile_cfg.copy = {
|
|||
{dest: '<%= distdir %>/images/', src: '**', expand: true, cwd: 'assets/images/'},
|
||||
{dest: '<%= distdir %>/ico', src: '**', expand: true, cwd: 'assets/ico'}
|
||||
]
|
||||
},
|
||||
templates: {
|
||||
files: [
|
||||
{ dest: '<%= root %>/', src: 'templates.json', cwd: '' }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -269,7 +276,7 @@ function shell_buildBinary(p, a) {
|
|||
function shell_run(arch) {
|
||||
return [
|
||||
'docker rm -f portainer',
|
||||
'docker run -d -p 9000:9000 -v $(pwd)/dist:/app -v /tmp/portainer:/data -v /var/run/docker.sock:/var/run/docker.sock:z --name portainer portainer/base /app/portainer-linux-' + arch + ' --no-analytics'
|
||||
'docker run -d -p 9000:9000 -v $(pwd)/dist:/app -v /tmp/portainer:/data -v /var/run/docker.sock:/var/run/docker.sock:z --name portainer portainer/base /app/portainer-linux-' + arch + ' --no-analytics --template-file /app/templates.json'
|
||||
].join(';');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue