]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove alpine image
authorChocobozzz <me@florianbigard.com>
Wed, 28 Mar 2018 11:45:24 +0000 (13:45 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 28 Mar 2018 11:45:24 +0000 (13:45 +0200)
server/helpers/custom-validators/activitypub/videos.ts
support/docker/production/Dockerfile.alpine [deleted file]
support/docker/production/docker-compose.yml

index 3af587a32a214c80fc844cac2488cf0b23ef9d7d..d8986b2a0a6e3ffc42795bb215dc246126080398 100644 (file)
@@ -57,7 +57,7 @@ function isVideoTorrentObjectValid (video: any) {
     isBooleanValid(video.commentsEnabled) &&
     isDateValid(video.published) &&
     isDateValid(video.updated) &&
-    setTruncatedContent(video) &&
+    setRemoteVideoTruncatedContent(video) &&
     (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) &&
     isRemoteVideoIconValid(video.icon) &&
     setValidRemoteVideoUrls(video) &&
@@ -113,7 +113,7 @@ function setValidRemoteVideoUrls (video: any) {
   return true
 }
 
-function setTruncatedContent (video: any) {
+function setRemoteVideoTruncatedContent (video: any) {
   if (video.content) {
     video.content = peertubeTruncate(video.content, CONSTRAINTS_FIELDS.VIDEOS.TRUNCATED_DESCRIPTION.max)
   }
diff --git a/support/docker/production/Dockerfile.alpine b/support/docker/production/Dockerfile.alpine
deleted file mode 100644 (file)
index 58a49d4..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-FROM node:8-alpine
-
-# Install dependencies
-RUN apk add --no-cache ffmpeg openssl bash make g++ git \
- && apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ vips-dev fftw-dev
-
-# Add peertube user
-RUN addgroup -g 991 peertube \
-    && adduser -D -u 991 -G peertube peertube
-
-# Download the latest version
-RUN git clone https://github.com/Chocobozzz/PeerTube /app \
-    && chown -R peertube:peertube /app
-
-# Install PeerTube
-USER peertube
-WORKDIR /app
-
-RUN yarn install --pure-lockfile \
-    && npm run build
-
-# Configure PeerTube
-RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
-ENV NODE_ENV production
-ENV NODE_CONFIG_DIR /app/support/docker/production/config
-
-# Run the application
-CMD ["npm", "start"]
-VOLUME ["/data"]
-EXPOSE 9000
index d45b0b51a8f68d1ccb8dfd818f8d4840ce227962..94dbb68c555230d77c8d7b8468a272a8a9a0ffd1 100644 (file)
@@ -6,7 +6,7 @@ services:
     build:
       context: .
       dockerfile: ./Dockerfile.stretch
-    image: peertube:stretch
+    image: chocobozzz/peertube:stretch
     environment:
       PEERTUBE_HOSTNAME: my.domain.tld
       PEERTUBE_PORT: 443