hunk.code_window: 		} else {
   			log.Println("Instance already has defined endpoints. Skipping the endpoint defined via CLI.")
   		}
   	}
   	var server portainer.Server = &http.Server{
   		BindAddress:            *flags.Addr,
   		AssetsPath:             *flags.Assets,
  
hunk.labels: keep keep keep keep add keep keep keep
hunk.after_edit: 	if *flags.AdminPassword != "" {
   		log.Printf("Creating admin user with password hash %s", *flags.AdminPassword)
   		user := &portainer.User{
   			Username: "admin",
   			Role:     portainer.AdministratorRole,
   			Password: *flags.AdminPassword,
   		}
   		err := store.UserService.CreateUser(user)
   		if err != nil {
   			log.Fatal(err)
   		}
   	}
  
hunk.file_path: api/cmd/portainer/main.go
hunk.type: add
file: angular.module('portainer.rest')
  .factory('ContainerCommit', ['$resource', 'Settings', 'EndpointProvider', function ContainerCommitFactory($resource, Settings, EndpointProvider) {
    'use strict';
    return $resource(Settings.url + '/:endpointId/commit', {
      endpointId: EndpointProvider.endpointID
    },
    {
      commit: {method: 'POST', params: {container: '@id', repo: '@repo', tag: '@tag'}}
    });
  }]);
  