-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2026 from hollaex/testnet
Testnet
- Loading branch information
Showing
42 changed files
with
1,168 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM arm64v8/node:16.18.1-buster-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y curl openssl ca-certificates git python build-essential && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
npm config set unsafe-perm true && \ | ||
npm install [email protected] [email protected] mocha -g --loglevel=error | ||
|
||
ENV NODE_ENV=production | ||
|
||
COPY ./server /app | ||
|
||
WORKDIR /app | ||
|
||
# Changing the default image user to 'appuser' | ||
RUN groupadd -g 999 appuser && \ | ||
useradd -r -u 999 -g appuser appuser && \ | ||
mkdir /home/appuser && \ | ||
chown -R appuser /home/appuser && \ | ||
chown -R appuser /app | ||
|
||
USER appuser | ||
|
||
RUN npm install --loglevel=error && \ | ||
pm2 update && \ | ||
cd /app/mail && npm install --loglevel=error | ||
|
||
EXPOSE 10010 | ||
|
||
EXPOSE 10080 | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
server/db/migrations/20230302043710-change-plugin-description-limit.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict'; | ||
|
||
const TABLE = 'Plugins'; | ||
const COLUMN = 'description'; | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => | ||
queryInterface.changeColumn(TABLE, COLUMN, { | ||
type: Sequelize.TEXT, | ||
allowNull: true | ||
}), | ||
down: (queryInterface, Sequelize) => | ||
queryInterface.changeColumn(TABLE, COLUMN, { | ||
type: Sequelize.STRING, | ||
allowNull: true | ||
}) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.