You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is work towards tern-tools#948
Now that skopeo has become the de-facto tool to download container
images, we will switch our instructions to install skopeo and use
it in our build and development environments.
At this time, skopeo is available on Ubuntu 20.04 through the
Kubic project, hence there may need to be some additional changes
in the future as the upstream package creators improve.
Signed-off-by: Nisha K <[email protected]>
- skopeo (See [here](https://github.com/containers/skopeo/blob/main/install.md) for installation instructions or building from source)
73
73
74
-
Some distro versions have all of these except `attr`and/or `jq` preinstalled but both are common utilities and are available via the package manager.
74
+
Some distro versions have all of these except `attr`, `jq`, and/or `skopeo` preinstalled. `attr` and `jq`are common utilities and are available via the package manager. `skopeo` has only recently been packaged for common Linux distros. If you don't see your distro in the list, your best bet is building from source, which is reasonably straightforward if you have Go installed.
75
75
76
-
For Docker containers
76
+
For analyzing Dockerfiles and to use the "lock" function
77
77
- Docker CE (Installation instructions can be found here: https://docs.docker.com/engine/installation/#server)
78
78
79
-
Make sure the docker daemon is running.
79
+
*NOTE:* We do not provide advice on the usage of [Docker Desktop](https://www.docker.com/blog/updating-product-subscriptions/)
80
+
81
+
Once installed, make sure the docker daemon is running.
## Getting Started with Docker<aname="getting-started-with-docker">
106
-
Docker is the most widely used tool to build and run containers. If you already have Docker installed, you can run Tern by building a container with the Dockerfile provided and the `docker_run.sh` script:
108
+
Docker is the most widely used tool to build and run containers. If you already have Docker installed, you can run Tern by building a container with the Dockerfile provided.
Run the script `docker_run.sh`. You may need to use sudo. In the below command `debian` is the docker hub container image name and `buster` is the tag that identifies the version we are interested in analyzing.
137
+
Run the ternd container image
138
+
139
+
```
140
+
$ docker run --rm ternd report -i debian:buster
141
+
```
142
+
143
+
If you are using this container to analyze Dockerfiles and to use the "lock" feature, then you must volume mount the docker socket. We have a convenience script which will do that for you.
You can make this change to the `docker_run.sh` script to make it easier.
163
+
155
164
## Getting Started with Vagrant<aname="getting-started-with-vagrant">
156
165
Vagrant is a tool to setup an isolated virtual software development environment. If you are using Windows or Mac OSes and want to run Tern from the command line (not in a Docker container) this is the best way to get started as Tern does not run natively in a Mac OS or Windows environment at this time.
0 commit comments