1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-05 18:45:01 +01:00

33 Commits

Author SHA1 Message Date
Giuseppe Scrivano
e045e8baef syscontainers: --user uses runc by default
bwrap-oci can still be used with the --runtime option.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1226
Approved by: rhatdan
2018-04-26 15:55:43 +00:00
Giuseppe Scrivano
d9fd59d547 docs, install: fix path for runc and bwrap-oci
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1196
Approved by: rhatdan
2018-02-23 15:15:05 +00:00
Giuseppe Scrivano
b68436a19f syscontainers: allow way to override use-links
we use hard links now by default when copying files to /usr, allow a
way to override this behavior through the manifest file.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1163
Approved by: peterbaouoft
2018-01-25 14:33:37 +00:00
Giuseppe Scrivano
e74f2dd256 syscontainers: expose ATOMIC
atomic run has some more features compared to a raw "$RUNTIME exec",
like the possibility to run a command for a service which is not started
yet.  Expose $ATOMIC as well during the installation so that a container
can more easily build a wrapper script for files inside the container.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1141
Approved by: baude
2017-12-15 14:35:27 +00:00
Giuseppe Scrivano
4979ce15c9 syscontainers: expose RUNTIME as a variable
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1141
Approved by: baude
2017-12-15 14:35:27 +00:00
Giuseppe Scrivano
983a864338 syscontainers: allow runtime defined in the configuration file
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1125
Approved by: TomSweeneyRedHat
2017-11-14 10:27:00 +00:00
Giuseppe Scrivano
e78ecdd216 install: add new option --runtime=PATH to choose the OCI runtime
it is supported by system and user containers.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1125
Approved by: TomSweeneyRedHat
2017-11-14 10:27:00 +00:00
Giuseppe Scrivano
cd6af24d21 docs: document system container variables and files
This might not be the best place to add this information, but it is a
starting point to get it documented.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1121
Approved by: baude
2017-10-30 20:33:07 +00:00
Tomas Tomecek
e93b8319ad implement install --storage=docker --system-package=yes
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>

Closes: #955
Approved by: baude
2017-04-28 22:52:40 +00:00
Giuseppe Scrivano
5f3a498138 install: add --system-package
Drop the hidden option ---generate-rpm in favor of --system-package.

The new option controls how a system container is installed to the host:

--generate-rpm=build build the rpm file without installing it.
--generate-rpm=yes build the rpm and install it, the rpm is deleted.
--generate-rpm=no do not attempt to build and install an rpm file.
--generate-rpm=auto install the rpm only if a .spec file is defined in
  the image.  This is the default.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #767
Approved by: rhatdan
2017-03-22 13:27:53 +00:00
Brent Baude
02bd134f1c Add --storage to install|run
To have parity function with pull, we need to add --storage
to install and run.  This allows for overriding when atomic.type
is defined.  For example, if you pull an image that has
atomic.type=system but you really want to store it
on the docker backend.

Closes: #861
Approved by: baude
2017-02-04 17:05:24 +00:00
Giuseppe Scrivano
c8f83d99ed install: hide --system and --user if not supported
Check respectively that runc and bwrap-oci are available before showing
'install --system' and 'install --user'.

bwrap-oci is still not packaged and may not be available immediately on
RHEL.  The check for runc is added for completeness.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #567
Approved by: rhatdan
2016-08-29 18:46:29 +00:00
yuqi-zhang
42c6094e3f syscontainers: add --rootfs to atomic install
Add --rootfs=ROOTFS to atomic install, which allows users to specify
an existing exploded container or existing rootfs location as ROOTFS.
The existing rootfs will be used as a read-only rootfs for the new
container to be installed, and therefore the new container would
only contain configuration files. (Note: currently all system
containers must have a read-only rootfs by default).

A use case for this would be using existing container's rootfs
through NFS, etc to serve as the rootfs for many containers running
the same image. This avoids duplicate storage of having a container
on each machine in a cluster.

A user can update only the remote container's config file parameters
with 'atomic update', and uninstalling a remote container does not
affect the rootfs specified in ROOTFS.

Closes: #527
Approved by: giuseppe
2016-08-12 22:07:36 +00:00
Giuseppe Scrivano
3bb5dbfe5a docs: document atomic install --user
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #524
Approved by: rhatdan
2016-08-09 17:00:29 +00:00
Giuseppe Scrivano
627b541a03 docs: add system containers info to "atomic install"
and don't split long lines

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #480
Approved by: rhatdan
2016-07-15 13:44:51 +00:00
Giuseppe Scrivano
39245230c5 atomic: hide system containers options if OSTree is not present
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #398
Approved by: rhatdan
2016-05-31 19:56:32 +00:00
Giuseppe Scrivano
3d7691fb97 docs: add man pages for system containers new options
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-04-18 20:27:32 +02:00
Dan Walsh
2d66fdcc13 Remove opt documentation, but continue support
opt1, opt2 and opt3 can be specified as environment variables.

OPT1=--debug atomic install foobar

No reason to have options.
2015-09-24 12:10:06 -04:00
Dan Walsh
78589573a9 Remove automatic setting of CONFDIR, DATADIR and LOGDIR
Users can do this themselves by using the ${NAME} field.

Hard coding behaviour of these three variables was a mistake, and this
is a lot more flexible.  I could add back the variables and don't document them
if people think someone has used them
2015-09-14 09:17:01 -04:00
Dan Walsh
4f45fc0467 Add missing options to man pages 2015-08-31 09:41:10 -04:00
Sally O'Malley
904588f97e atomic man fixes
Signed-off-by: Sally O'Malley <somalley@redhat.com>
2015-08-26 11:44:10 -04:00
Avesh Agarwal
b4da5b97ae This removes --name \${NAME} from atomic install and uninstall man pages
because it is error prone to use it this way. Using the same NAME in the
environment variable -e NAME=\${NAME} and in container name (--name) for
install and uninstall seems incorrect because both of them serve
different purposes. Also if NAME is being used to create a container in
the install script, which happens most of the time, it leads to failure
because the same NAME is used for the ephemeral container to process
LABEL INSTALL and due to that, the actual container can not be created
and it gives following error:
"Error response from daemon: Conflict. The name "etcd1" is
already in use by container b50ea8bf1d40."

Anyway assigning names (using -name NAME) to ephemeral containers during
install and uninstall does not make much sense in my point of view.
2015-08-19 16:11:11 -04:00
Sally O'Malley
c13019c43e WIP: Add --display to run|install
Use --display to view run or install commands without
executing the commands.  This is useful when working with custom images
with LABEL methods defined.

Signed-off-by: Sally O'Malley <somalley@redhat.com>
2015-07-27 16:51:23 -04:00
Dan Walsh
efb6af78cd Add missing docs updates for OPT1,2,3 2015-07-22 14:38:51 -04:00
Subin M
473ab65eb1 add opt1 opt2 opt3 2015-07-02 16:57:50 +05:30
Brian (bex) Exelbierd
53d3dc83c6 Add SUDO_UID and SUDO_GID variable substitions
These substions are useful with docker -u SUDO_UID:SUDO_GID ...
for userspace tools such as format translators
2015-06-27 17:42:48 +02:00
Solly Ross
d8d695381e Add IMAGE and NAME as environment variables
This commit adds `IMAGE` and `NAME` as environment variables
passed to install, uninstall, stop, and run (similarly to
`CONFDIR`, `DATADIR`, and `LOGDIR`).  This allows users to write
`NAME=${NAME}` instead of `NAME=NAME`, and also enables `${NAME}`
and `${IMAGE}` to be used in arbitrary parts of the commands.
2015-06-17 14:23:16 -04:00
Dan Walsh
c94bd60de2 Pass additional arguments to the atomic install/uninstall line
This patch will allow a user to pass additional arguments to the command specified in the INSTALL/UNINSTALL lines
2015-05-27 09:22:06 -04:00
Avesh Agarwal
f856aec77e Fixing typos. 2015-03-31 16:32:13 -04:00
Dan Walsh
195d1f786b Cleanup spelling in man pages 2015-02-23 17:31:28 -05:00
Dan Walsh
fd4aee4763 Fix merge issues 2015-01-25 06:03:53 -05:00
Dan Walsh
10fc4c89db Move atomic host commands to 'host' subcommand 2015-01-23 05:10:14 -05:00
Dan Walsh
394732cdaa Rename atom to atomic 2015-01-22 17:37:51 -05:00