Skip to content

Commit

Permalink
chore: 🤖 openstack
Browse files Browse the repository at this point in the history
  • Loading branch information
hijiki51 committed Nov 13, 2023
1 parent 9563ea1 commit c275ce3
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 1,035 deletions.
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-bookworm-slim AS builder
FROM node:18-bookworm-slim AS builder
ENV GHOST_VERSION 5.54.4
ENV NODE_ENV development

Expand All @@ -23,14 +23,14 @@ COPY ./ghost/core/content/themes/ghost-theme-2020 /srv/ghost/content/themes/ghos

# s3 adaptorを移動
RUN mkdir -p /srv/ghost/content/adapters/storage && \
cp -r ./node_modules/ghost-storage-adapter-s3 /srv/ghost/content/adapters/storage/s3
cp -r ./node_modules/ghost-storage-adapter-openstack /srv/ghost/content/adapters/storage/openstack

FROM node:16-bookworm-slim
FROM node:18-bookworm-slim
RUN apt-get update && apt-get install -y git

ENV NODE_ENV production
COPY --from=builder /srv/ghost /srv/ghost
WORKDIR /srv/ghost
RUN yarn install && yarn cache clean
EXPOSE 2368
CMD ["node", "--heapsnapshot-signal=SIGUSR2", "./index.js"]
CMD ["node", "./index.js"]
2 changes: 1 addition & 1 deletion docker/DockerfileDockerize
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN cp ./ghost/core/ghost-${GHOST_VERSION}.tgz ./ghost.tgz && \

# s3 adaptorを移動
RUN mkdir -p /srv/ghost/content/adapters/storage && \
cp -r ./node_modules/ghost-storage-adapter-s3 /srv/ghost/content/adapters/storage/s3
cp -r ./node_modules/ghost-storage-adapter-openstack /srv/ghost/content/adapters/storage/openstack

COPY ./ghost/core/content/themes/ghost-theme-2020 /srv/ghost/content/themes/ghost-theme-2020

Expand Down
4 changes: 2 additions & 2 deletions ghost/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"express-session": "1.17.3",
"fs-extra": "11.1.1",
"ghost-pagination": "^0.1.3",
"ghost-storage-adapter-s3": "traPtitech/ghost-storage-adapter-s3#7c496dad14589bb135ac7cc633463e41876b1727",
"ghost-storage-adapter-openstack": "traPtitech/ghost-storage-adapter-openstack#c85711e",
"ghost-storage-base": "1.0.0",
"glob": "8.1.0",
"got": "11.8.6",
Expand Down Expand Up @@ -285,4 +285,4 @@
}
}
}
}
}
Loading

0 comments on commit c275ce3

Please sign in to comment.