mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 01:25:06 +01:00 
			
		
		
		
	Update Makefile build and added docker mariadb
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -36,6 +36,10 @@ $(TARGET): $(VAR) $(CFG) $(SVELTE_TARGETS)
 | 
			
		||||
	$(info ===>  BUILD cc-backend)
 | 
			
		||||
	@go build -ldflags=${LD_FLAGS} ./cmd/cc-backend
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
	$(info ===>  BUILD cc-backend)
 | 
			
		||||
	@go build -ldflags=${LD_FLAGS} ./cmd/cc-backend
 | 
			
		||||
 | 
			
		||||
frontend:
 | 
			
		||||
	$(info ===>  BUILD frontend)
 | 
			
		||||
	cd web/frontend && pnpm install && pnpm run build
 | 
			
		||||
 
 | 
			
		||||
@@ -202,3 +202,9 @@ In case the REST or GraphQL API is changed the according code generators have to
 | 
			
		||||
- [`gqlgen.yml`](https://github.com/ClusterCockpit/cc-backend/blob/master/gqlgen.yml) Configures the behaviour and generation of [gqlgen](https://github.com/99designs/gqlgen).
 | 
			
		||||
- [`startDemo.sh`](https://github.com/ClusterCockpit/cc-backend/blob/master/startDemo.sh) is a shell script that sets up demo data, and builds and starts `cc-backend`.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Docker Mariadb
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 docker run -p 3306:3306 -detach --name some-mariadb   --env MARIADB_DATABASE=clustercockpit --env MARIADB_ROOT_PASSWORD=my-secret-pw  mariadb:latest
 | 
			
		||||
```
 | 
			
		||||
							
								
								
									
										968
									
								
								web/frontend/pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										968
									
								
								web/frontend/pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -52,7 +52,7 @@ const entrypoint = (name, path) => ({
 | 
			
		||||
        // we'll extract any component CSS out into
 | 
			
		||||
        // a separate file - better for performance
 | 
			
		||||
        css({ output: `${name}.css` }),
 | 
			
		||||
        livereload('public')
 | 
			
		||||
        // livereload('public')
 | 
			
		||||
    ],
 | 
			
		||||
    watch: {
 | 
			
		||||
        clearScreen: false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user