mirror of
https://github.com/bitnami/containers.git
synced 2026-03-05 16:17:21 +08:00
@@ -3,7 +3,7 @@ MAINTAINER Bitnami <containers@bitnami.com>
|
||||
|
||||
ENV BITNAMI_APP_NAME=node \
|
||||
BITNAMI_APP_USER=bitnami \
|
||||
BITNAMI_APP_VERSION=4.1.1-0-r01 \
|
||||
BITNAMI_APP_VERSION=4.1.2-0 \
|
||||
BITNAMI_APP_DIR=$BITNAMI_PREFIX/nodejs
|
||||
|
||||
ENV PATH=$BITNAMI_PREFIX/python/bin:$BITNAMI_APP_DIR/bin:$BITNAMI_PREFIX/common/bin:$PATH
|
||||
|
||||
@@ -291,6 +291,10 @@ bats test.sh
|
||||
|
||||
# Changelog
|
||||
|
||||
## 4.1.2-0 (2015-10-12)
|
||||
|
||||
- Permissions fixed so `bitnami` user can install global npm modules without needing `sudo`.
|
||||
|
||||
## 4.1.1-0-r01 (2015-10-07)
|
||||
|
||||
- `/app` directory is no longer exported as a volume. This caused problems when building on top of the image, since changes in the volume are not persisted between Dockerfile `RUN` instructions. To keep the previous behavior (so that you can mount the volume in another container), create the container with the `-v /app` option.
|
||||
|
||||
@@ -1 +1 @@
|
||||
46291c992a6af86b39bd0af6090e56044f07c71c702344d4dec9b2ddc5d24043 /tmp/installer.run
|
||||
7da88130ff0ddf6afcd3a180e7c89195c285f7098e33e92b79c8daaee1eba10d /tmp/installer.run
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
mkdir /app
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER /app/
|
||||
chown -R $BITNAMI_APP_USER:$BITNAMI_APP_USER /app/ $BITNAMI_APP_DIR
|
||||
|
||||
@@ -57,6 +57,12 @@ teardown() {
|
||||
[ "$status" = 0 ]
|
||||
}
|
||||
|
||||
@test "can install global npm modules" {
|
||||
run docker exec $CONTAINER_NAME\
|
||||
npm install -g node-static
|
||||
[ "$status" = 0 ]
|
||||
}
|
||||
|
||||
@test "port 3000 exposed" {
|
||||
add_app
|
||||
docker exec -d $CONTAINER_NAME sh -c 'npm install express && node server.js'
|
||||
|
||||
Reference in New Issue
Block a user