FROM eclipse-temurin:17.0.4.1_1-jre-jammy
RUN addgroup --system spring \
&& adduser --system spring \
&& usermod -aG spring spring
USERspring:spring
COPY./demo.jar demo.jar
ENTRYPOINT ["java", "-jar", "/demo.jar"]
user1@debian1:~$ sudo parted /dev/sdb
GNU Parted 3.4
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: /dev/sdb: unrecognised disk label
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted) mklabel gpt
(parted) mkpart zfs1 zfs 2048s 100%
(parted) p
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sdb: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 53.7GB 53.7GB zfs zfs1
(parted) q
Information: You may need to update /etc/fstab.
user1@debian1:~$ lxd init
Would you like to use LXD clustering? (yes/no)[default=no]:
Do you want to configure a new storage pool? (yes/no)[default=yes]:
Name of the new storage pool [default=default]: zfs_pool1
Name of the storage backend to use (lvm, zfs, ceph, btrfs, dir)[default=zfs]:
Create a new ZFS pool? (yes/no)[default=yes]:
Would you like to use an existing empty block device (e.g. a disk or partition)? (yes/no)[default=no]: yes
Path to the existing block device: /dev/sdb1
Would you like to connect to a MAAS server? (yes/no)[default=no]:
Would you like to create a new local network bridge? (yes/no)[default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”)[default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”)[default=auto]: none
Would you like the LXD server to be available over the network? (yes/no)[default=no]:
Would you like stale cached images to be updated automatically? (yes/no)[default=yes]: no
Would you like a YAML "lxd init" preseed to be printed? (yes/no)[default=no]:
:
##! Attempt to modify kernel paramaters. To skip this in containers where the##! relevant file system is read-only, set the value to false.- # package['modify_kernel_parameters'] = true+ package['modify_kernel_parameters'] = false
:
:
# To completely disable prometheus, and all of it's exporters, set to false- # prometheus_monitoring['enable'] = true+ prometheus_monitoring['enable'] = false
:
Menu > Admin > Overview(サイドメニュー) > Runners > Register an instance runner > Show runner installation and registration instructions
gitlab-runner register指定サンプル:
LXC Docker
root@docker1:~# sudo gitlab-runner register --url http://192.0.2.101:1081/ --registration-token b41a-9VWVPFsjiqv-AJB
Runtime platform arch=amd64 os=linux pid=5329revision=f761588f version=14.10.1
Running in system-mode.
Enter the GitLab instance URL (for example, https://gitlab.com/):
[http://192.0.2.101:1081/]:
Enter the registration token:
[b41a-9VWVPFsjiqv-AJB]:
Enter a description for the runner:
[docker1]: Example Runner 1
Enter tags for the runner (comma-separated):
Enter optional maintenance note for the runner:
Registering runner... succeeded runner=b41a-9VW
Enter an executor: docker-ssh+machine, kubernetes, docker, shell, ssh, virtualbox, custom, docker-ssh, parallels, docker+machine:
docker
Enter the default Docker image (for example, ruby:2.7):
debian:stable-slim
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
ERROR: Job failed: prepare environment: exit status 1. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
# WARNING: This value is valid only in the following conditions# 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).# 2. Password hasn't been changed manually, either via UI or via command line.## If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
Password: *******************************
# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.