fix: some updates
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,15 +1,8 @@
|
|||||||
FROM node:14
|
FROM arm64v8/node:25-alpine
|
||||||
|
|
||||||
WORKDIR /tmp
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN ["./build_script.sh"]
|
|
||||||
|
|
||||||
FROM arm32v7/node:14
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY --from=0 /tmp/build .
|
COPY build .
|
||||||
RUN apt-get update && apt install mariadb-client -y
|
RUN apk add mariadb-client
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
EXPOSE 4000
|
EXPOSE 4000
|
||||||
|
|||||||
@@ -22,15 +22,6 @@ cd ../../
|
|||||||
mv main-web/client/client build/client
|
mv main-web/client/client build/client
|
||||||
echo "Finished client build..."
|
echo "Finished client build..."
|
||||||
|
|
||||||
# build admin and move
|
|
||||||
cd main-web/admin
|
|
||||||
echo "Starting admin ui build..."
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
cd ../../
|
|
||||||
mv main-web/admin/build build/admin
|
|
||||||
echo "Finished admin ui build..."
|
|
||||||
|
|
||||||
# build server and move
|
# build server and move
|
||||||
cd main-web/server
|
cd main-web/server
|
||||||
echo "Starting server build..."
|
echo "Starting server build..."
|
||||||
@@ -38,16 +29,9 @@ npm install
|
|||||||
npm run build
|
npm run build
|
||||||
cd ../../
|
cd ../../
|
||||||
cd build/
|
cd build/
|
||||||
echo "Starting retrieval of db credentials..."
|
|
||||||
export catherine_db_endpoint=$(aws --region=ap-northeast-1 ssm get-parameter --name "db-endpoint" --with-decryption --output text --query Parameter.Value)
|
|
||||||
export catherine_db_user=$(aws --region=ap-northeast-1 ssm get-parameter --name "db-username" --with-decryption --output text --query Parameter.Value)
|
|
||||||
export catherine_db_pass=$(aws --region=ap-northeast-1 ssm get-parameter --name "db-password" --with-decryption --output text --query Parameter.Value)
|
|
||||||
echo "Saving db credentials to .env file..."
|
echo "Saving db credentials to .env file..."
|
||||||
cat > .env <<EOL
|
|
||||||
DB_ENDPOINT=${catherine_db_endpoint}
|
|
||||||
DB_USER=${catherine_db_user}
|
|
||||||
DB_PASS=${catherine_db_pass}
|
|
||||||
EOL
|
|
||||||
cd ../
|
cd ../
|
||||||
cp main-web/server/package.json build/
|
cp main-web/server/package.json build/
|
||||||
cp main-web/server/tsconfig.json build/
|
cp main-web/server/tsconfig.json build/
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"semantic-ui-css": "^2.4.1",
|
"semantic-ui-css": "^2.4.1",
|
||||||
"semantic-ui-react": "^0.88.2",
|
"semantic-ui-react": "^0.88.2",
|
||||||
"i18next": "^19.6.3",
|
"i18next": "^19.6.3",
|
||||||
"typescript": "^3.7.5"
|
"typescript": "^4.9.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/jest-dom": "^4.2.4",
|
"@testing-library/jest-dom": "^4.2.4",
|
||||||
|
|||||||
@@ -7,12 +7,18 @@ type ComponentProps = {
|
|||||||
export const Home: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
export const Home: FunctionComponent<ComponentProps> = (props): JSX.Element => {
|
||||||
return (
|
return (
|
||||||
<div className={style.mainBody}>
|
<div className={style.mainBody}>
|
||||||
<div className={style.evojapan2023} />
|
<div className={style.evojapan2025} />
|
||||||
<div className={style.padding} />
|
<div className={style.padding} />
|
||||||
<div className={style.evojapan2023kaisaikettei} />
|
<div className={style.evojapan2023kaisaikettei} />
|
||||||
{/* <div className={style.tonamel}>
|
<div className={style.padding} />
|
||||||
<a href='https://tonamel.com/competition/49WpE' rel='noopener noreferrer' target='_blank'> </a>
|
<div className={style.group}>
|
||||||
</div> */}
|
<div className={style.evojapan2023catherinetonamel}>
|
||||||
|
<a href='https://tonamel.com/competition/VD6y8' rel='noopener noreferrer' target='_blank'> </a>
|
||||||
|
</div>
|
||||||
|
<div className={style.evojapan2023catherinefullbodytonamel}>
|
||||||
|
<a href='https://tonamel.com/competition/dgdQ9' rel='noopener noreferrer' target='_blank'> </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div className={style.padding} />
|
<div className={style.padding} />
|
||||||
<div className={style.twitchHome}>
|
<div className={style.twitchHome}>
|
||||||
<a href='https://www.twitch.tv/catherine_faito_crab' rel='noopener noreferrer' target='_blank'> </a>
|
<a href='https://www.twitch.tv/catherine_faito_crab' rel='noopener noreferrer' target='_blank'> </a>
|
||||||
|
|||||||
@@ -448,11 +448,58 @@
|
|||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-repeat: none;
|
background-repeat: none;
|
||||||
}
|
}
|
||||||
.evojapan2023kaisaikettei {
|
.evojapan2024 {
|
||||||
width: 941px;
|
width: 500px;
|
||||||
height: 729px;
|
height: 471px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
background-image: url('https://static.catherine-fc.com/media/kaisaikettei2.png');
|
background-image: url('https://static.catherine-fc.com/media/evo_2024_logo_shadow_drop.png');
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: none;
|
||||||
|
}
|
||||||
|
.evojapan2025 {
|
||||||
|
width: 500px;
|
||||||
|
height: 471px;
|
||||||
|
margin: auto;
|
||||||
|
background-image: url('https://static.catherine-fc.com/media/evo_logo_2025_shadow_drop.png');
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: none;
|
||||||
|
}
|
||||||
|
.evojapan2023kaisaikettei {
|
||||||
|
width: 846px;
|
||||||
|
height: 285px;
|
||||||
|
margin: auto;
|
||||||
|
background-image: url('https://static.catherine-fc.com/media/kaisaikettei3.png');
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
.evojapan2023catherinetonamel {
|
||||||
|
width: 412px;
|
||||||
|
height: 389px;
|
||||||
|
background-image: url('https://static.catherine-fc.com/media/catherine_logo_classic.png');
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: none;
|
||||||
|
&> a {
|
||||||
|
display:block;
|
||||||
|
width: 412px;
|
||||||
|
height: 389px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.evojapan2023catherinefullbodytonamel {
|
||||||
|
width: 517px;
|
||||||
|
height: 319px;
|
||||||
|
background-image: url('https://static.catherine-fc.com/media/catherine_fullbody_logo.png');
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: none;
|
||||||
|
&> a {
|
||||||
|
display:block;
|
||||||
|
width: 517px;
|
||||||
|
height: 319px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.group {
|
||||||
|
width: 900px;
|
||||||
|
height: 389px;
|
||||||
|
margin: auto;
|
||||||
|
display: flex;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-repeat: none;
|
background-repeat: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"@types/express": "^4.17.6",
|
"@types/express": "^4.17.6",
|
||||||
"@types/mysql": "^2.1.4",
|
"@types/mysql": "^2.1.4",
|
||||||
"@types/socket.io": "^2.1.4",
|
"@types/socket.io": "^2.1.4",
|
||||||
"typescript": "^3.8.3",
|
"typescript": "^4.9.5",
|
||||||
"tslint": "^5.18.0",
|
"tslint": "^5.18.0",
|
||||||
"tslint-config-airbnb": "^5.11.1"
|
"tslint-config-airbnb": "^5.11.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "tool",
|
"homepage": "tool",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/core": "^7.24.4",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"node-sass": "^4.13.1",
|
"node-sass": "^4.13.1",
|
||||||
"react": "^16.13.1",
|
"react": "^16.13.1",
|
||||||
@@ -12,7 +13,7 @@
|
|||||||
"semantic-ui-css": "^2.4.1",
|
"semantic-ui-css": "^2.4.1",
|
||||||
"semantic-ui-react": "^0.88.2",
|
"semantic-ui-react": "^0.88.2",
|
||||||
"socket.io-client": "^2.3.0",
|
"socket.io-client": "^2.3.0",
|
||||||
"typescript": "^3.7.5"
|
"typescript": "^4.9.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/jest-dom": "^4.2.4",
|
"@testing-library/jest-dom": "^4.2.4",
|
||||||
|
|||||||
Reference in New Issue
Block a user