1.4.1-ol-7-r0 release

This commit is contained in:
Bitnami Bot
2019-05-31 16:59:56 +00:00
parent 3fc73a5ba6
commit 2df97bd29b
5 changed files with 228 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
FROM bitnami/oraclelinux-extras-base:7-r301
LABEL maintainer "Bitnami <containers@bitnami.com>"
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
HOME="/" \
OS_ARCH="x86_64" \
OS_FLAVOUR="ol-7" \
OS_NAME="linux"
# Install required system packages and dependencies
RUN install_packages OpenEXR-libs atk blas bzip2-libs cairo expat fontconfig freetype fribidi gdk-pixbuf2 glib2 glibc graphite2 gstreamer gstreamer-plugins-base gtk2 harfbuzz ilmbase jasper-libs jbigkit-libs keyutils-libs krb5-libs lapack lapack-devel libX11 libXau libXcomposite libXcursor libXdamage libXext libXfixes libXi libXinerama libXrandr libXrender libblkid libcom_err libffi libgcc libgfortran libglvnd libglvnd-egl libglvnd-glx libgomp libjpeg-turbo libmount libopm-devel libpng libquadmath libselinux libsodium libstdc++ libthai libtiff libuuid libv4l libxcb libxml2 ncurses-libs nss-softokn-freebl opencv opencv-core opencv-devel openpgm openssl-libs orc pango pcre pixman protobuf protobuf-devel readline sqlite xz-libs zeromq zeromq-devel zlib
RUN . ./libcomponent.sh && component_unpack "python" "3.6.8-2" --checksum ef147d69b97d735e099fe281f6e7270ad9d5101eb2a4aca364525b1776b2e6ae
RUN . ./libcomponent.sh && component_unpack "mxnet" "1.4.1-0" --checksum a49753b33a2c26b5d94c607a7e1a2fbca495459d6ed6582fd66dd6d076edc99b
COPY rootfs /
RUN /prepare.sh
ENV BITNAMI_APP_NAME="mxnet" \
BITNAMI_IMAGE_VERSION="1.4.1-ol-7-r0" \
LD_LIBRARY_PATH="/opt/bitnami/python/lib/:$LD_LIBRARY_PATH" \
NAMI_PREFIX="/.nami" \
PATH="/opt/bitnami/python/bin:$PATH"
WORKDIR /app
USER 1001
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "python" ]

View File

@@ -0,0 +1,11 @@
version: '2'
services:
mxnet:
image: bitnami/mxnet:1-ol-7
command: sleep infinity
volumes:
- mxnet_data:/bitnami
volumes:
mxnet_data:
driver: local

View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
#set -o xtrace
# shellcheck disable=SC1091
# Load libraries
. /libbitnami.sh
print_welcome_page
echo ""
exec "$@"

View File

@@ -0,0 +1,14 @@
#!/bin/bash
# shellcheck disable=SC1091
# Load libraries
. /libfs.sh
MXNET_BASEDIR="/opt/bitnami/python"
MXNET_WORKSPACE="/app"
# Ensure non-root user has write permissions on the workspace
ensure_dir_exists "$MXNET_WORKSPACE"
chmod -R g+rwX "$MXNET_BASEDIR" "$MXNET_WORKSPACE"

View File

@@ -0,0 +1,162 @@
# What is MXNet?
>A flexible and efficient library for deep learning.
Based on the the Gluon API specification, the new Gluon library in Apache MXNet provides a clear, concise, and simple API for deep learning. It makes it easy to prototype, build, and train deep learning models without sacrificing training speed. Install the latest version of MXNet to get access to Gluon.
[mxnet.incubator.apache.org](https://mxnet.incubator.apache.org/versions/master/)
# TL;DR;
```bash
$ docker run -it --name mxnet bitnami/mxnet
```
## Docker Compose
```bash
$ curl -sSL https://raw.githubusercontent.com/bitnami/bitnami-docker-mxnet/master/docker-compose.yml > docker-compose.yml
$ docker-compose up -d
```
# Why use Bitnami Images?
* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
* With Bitnami images the latest bug fixes and features are available as soon as possible.
* Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.
* All our images are based on [minideb](https://github.com/bitnami/minideb) a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading linux distribution.
* All Bitnami images available in Docker Hub are signed with [Docker Content Trust (DTC)](https://docs.docker.com/engine/security/trust/content_trust/). You can use `DOCKER_CONTENT_TRUST=1` to verify the integrity of the images.
* Bitnami container images are released daily with the latest distribution packages available.
> This [CVE scan report](https://quay.io/repository/bitnami/mxnettab=tags) contains a security report with all open CVEs. To get the list of actionable security issues, find the "latest" tag, click the vulnerability report link under the corresponding "Security scan" field and then select the "Only show fixable" filter on the next page.
# Why use a non-root container?
Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers [in our docs](https://docs.bitnami.com/containers/how-to/work-with-non-root-containers/).
# Supported tags and respective `Dockerfile` links
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/).
* [`1-ol-7`, `1.4.1-ol-7-r0` (1/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-mxnet/blob/1.4.1-ol-7-r0/1/ol-7/Dockerfile)
* [`1-debian-9`, `1.4.1-debian-9-r0`, `1`, `1.4.1`, `1.4.1-r0`, `latest` (1/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mxnet/blob/1.4.1-debian-9-r0/1/debian-9/Dockerfile)
Subscribe to project updates by watching the [bitnami/mxnet GitHub repo](https://github.com/bitnami/bitnami-docker-mxnet).
# Get this image
The recommended way to get the Bitnami MXNet Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/mxnet).
```bash
$ docker pull bitnami/mxnet:latest
```
To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/mxnet/tags/) in the Docker Hub Registry.
```bash
$ docker pull bitnami/mxnet:[TAG]
```
If you wish, you can also build the image yourself.
```bash
$ docker build -t bitnami/mxnet https://github.com/bitnami/bitnami-docker-mxnet.git
```
# Entering the REPL
By default, running this image will drop you into the Python REPL, where you can interactively test and try things out with mxnet in Python.
```bash
$ docker run -it --name mxnet bitnami/mxnet
```
# Configuration
## Running your MXNet app
The default work directory for the mxnet image is `/app`. You can mount a folder from your host here that includes your mxnet script, and run it normally using the `python` command.
```bash
$ docker run -it --name mxnet -v /path/to/app:/app bitnami/mxnet \
python script.py
```
## Running a MXNet app with package dependencies
If your mxnet app has a `requirements.txt` defining your app's dependencies, you can install the dependencies before running your app.
```bash
$ docker run -it --name mxnet -v /path/to/app:/app bitnami/mxnet \
sh -c "pip install -y --file requirements.txt && python script.py"
```
# Maintenance
## Upgrade this image
Bitnami provides up-to-date versions of MXNet, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container.
### Step 1: Get the updated image
```bash
$ docker pull bitnami/mxnet:latest
```
or if you're using Docker Compose, update the value of the image property to `bitnami/mxnet:latest`.
### Step 2: Remove the currently running container
```bash
$ docker rm -v mxnet
```
or using Docker Compose:
```bash
$ docker-compose rm -v mxnet
```
### Step 3: Run the new image
Re-create your container from the new image.
```bash
$ docker run --name mxnet bitnami/mxnet:latest
```
or using Docker Compose:
```bash
$ docker-compose up mxnet
```
# Contributing
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-mxnet/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-mxnet/pulls) with your contribution.
# Issues
If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/bitnami-docker-mxnet/issues). For us to provide better support, be sure to include the following information in your issue:
- Host OS and version
- Docker version (`$ docker version`)
- Output of `$ docker info`
- Version of this container (`$ echo $BITNAMI_IMAGE_VERSION` inside the container)
- The command you used to run the container, and any relevant output you saw (masking any sensitive information)
# License
Copyright (c) 2019 Bitnami
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.