Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 支持多源邮件发送,扩展一些接口,使得支持更详细的查询,并修复一些线上的 bug #58

Merged
merged 113 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
6b98f02
fix: 调整代码
CarefreeState Sep 30, 2024
0023ccd
fix: 调整代码
CarefreeState Sep 30, 2024
50c36fd
Merge branch 'master' of github.com:AchoBeta/AchoBeta-Recruitment
CarefreeState Sep 30, 2024
ab70592
Merge branch 'master' of github.com:AchoBeta/AchoBeta-Recruitment
CarefreeState Sep 30, 2024
a1b4f27
feat: 整理sql
CarefreeState Sep 30, 2024
97ccce4
fix: 删除无用依赖
CarefreeState Sep 30, 2024
2a794ef
fix: 调整代码
CarefreeState Sep 30, 2024
28f0028
fix: 调整代码
CarefreeState Sep 30, 2024
d59464f
fix: 调整sql
CarefreeState Sep 30, 2024
a35e9d2
fix: 调整sql
CarefreeState Sep 30, 2024
d18a789
Merge branch 'master' of github.com:AchoBeta/AchoBeta-Recruitment
CarefreeState Sep 30, 2024
b440601
fix: 调整sql
CarefreeState Sep 30, 2024
40a8418
Merge branch 'master' of github.com:AchoBeta/AchoBeta-Recruitment
CarefreeState Oct 1, 2024
5980279
Merge branch 'master' of github.com:AchoBeta/AchoBeta-Recruitment
CarefreeState Oct 7, 2024
d8d05f4
fix: 调整一下代码
CarefreeState Oct 7, 2024
abccdee
fix: 调整一下代码
CarefreeState Oct 8, 2024
a09464f
fix: 调整一下代码
CarefreeState Oct 8, 2024
abbf260
fix: 调整一下代码
CarefreeState Oct 8, 2024
882d7f5
fix: 调整一下代码
CarefreeState Oct 8, 2024
429705a
fix: 调整一下代码
CarefreeState Oct 8, 2024
294f034
fix: 调整一下代码
CarefreeState Oct 8, 2024
1f15683
fix: 调整一下代码
CarefreeState Oct 8, 2024
5fc39b8
fix: 使用分布式锁,防止资源的重复上传
CarefreeState Oct 10, 2024
65e784d
fix: 调整代码
CarefreeState Oct 10, 2024
53f39ba
fix: 调整代码
CarefreeState Oct 11, 2024
e9d95e9
fix: 实现图片压缩
CarefreeState Oct 11, 2024
416a0fe
fix: 实现图片压缩
CarefreeState Oct 11, 2024
6a851b5
fix: 跳转代码
CarefreeState Oct 11, 2024
2a49083
fix: 调整代码
CarefreeState Oct 11, 2024
08a133f
fix: 调整代码
CarefreeState Oct 11, 2024
503e0b0
fix: 调整代码
CarefreeState Oct 12, 2024
59eb867
fix: 调整代码
CarefreeState Oct 12, 2024
4127296
fix: 调整代码
CarefreeState Oct 12, 2024
7f1a177
fix: 调整代码
CarefreeState Oct 12, 2024
f52cd57
fix: 调整代码
CarefreeState Oct 12, 2024
cbe6775
fix: 调整代码
CarefreeState Oct 12, 2024
baddcb0
fix: 调整代码
CarefreeState Oct 12, 2024
324ef59
fix: 调整代码
CarefreeState Oct 12, 2024
7dcf857
fix: 调整代码
CarefreeState Oct 12, 2024
77ea812
fix: 调整代码
CarefreeState Oct 12, 2024
35f3fbf
fix: 调整代码
CarefreeState Oct 13, 2024
aab1dc7
fix: 调整代码
CarefreeState Oct 13, 2024
938d97a
fix: 调整代码
CarefreeState Oct 13, 2024
47a3658
feat: 支持多邮件发送源
CarefreeState Oct 13, 2024
b1f5d7a
feat: 支持多邮件发送源
CarefreeState Oct 13, 2024
b2ef655
feat: 支持多邮件发送源
CarefreeState Oct 13, 2024
b052406
feat: 支持多邮件发送源
CarefreeState Oct 13, 2024
264570b
fix: 修复 bug
CarefreeState Oct 13, 2024
a7ca7f1
fix: 调整代码
CarefreeState Oct 13, 2024
63421ba
fix: 调整代码
CarefreeState Oct 13, 2024
4081093
fix: 调整代码
CarefreeState Oct 13, 2024
cd69e7f
fix: 调整代码
CarefreeState Oct 13, 2024
6e7edb4
fix: 调整代码
CarefreeState Oct 14, 2024
865e16e
fix: 调整代码
CarefreeState Oct 14, 2024
4dcf77e
fix: 调整代码
CarefreeState Oct 14, 2024
e982672
fix: 调整代码
CarefreeState Oct 14, 2024
8d3c8d3
fix: 调整代码
CarefreeState Oct 14, 2024
5c5f9eb
fix: 调整代码
CarefreeState Oct 14, 2024
733e28d
fix: 调整代码
CarefreeState Oct 14, 2024
d6dda26
fix: 调整代码
CarefreeState Oct 14, 2024
5592008
fix: 调整代码
CarefreeState Oct 14, 2024
b8258e4
feat: 增加参与情况的条件查询接口
CarefreeState Oct 14, 2024
b0ad528
fix: 删除无用依赖
CarefreeState Oct 14, 2024
eacfa57
fix: 调整代码
CarefreeState Oct 14, 2024
df22afe
fix: 调整代码
CarefreeState Oct 15, 2024
89de8ed
fix: 调整代码
CarefreeState Oct 15, 2024
e9444c6
fix: 调整代码
CarefreeState Oct 15, 2024
2942037
fix: 调整代码
CarefreeState Oct 15, 2024
ceedfd5
fix: 调整代码
CarefreeState Oct 15, 2024
2fbbfc2
fix: 调整代码
CarefreeState Oct 15, 2024
4dedb3e
fix: 调整代码
CarefreeState Oct 15, 2024
1137de4
fix: 调整代码
CarefreeState Oct 15, 2024
9ac4fe1
fix: 调整代码
CarefreeState Oct 15, 2024
e4118f1
fix: 调整代码
CarefreeState Oct 15, 2024
8dbe502
fix: 调整代码
CarefreeState Oct 15, 2024
8ecac40
fix: 调整代码
CarefreeState Oct 15, 2024
82d3d77
fix: 调整代码
CarefreeState Oct 15, 2024
fbbb304
fix: 调整代码
CarefreeState Oct 15, 2024
231af5d
fix: 调整代码
CarefreeState Oct 15, 2024
e71867a
fix: 调整代码
CarefreeState Oct 15, 2024
84f431a
fix: 调整代码
CarefreeState Oct 15, 2024
b106497
fix: 调整代码
CarefreeState Oct 16, 2024
de9cb6a
fix: 调整代码
CarefreeState Oct 16, 2024
00e129a
fix: 扩展接口支持条件查询,调整代码
CarefreeState Oct 16, 2024
2c51669
fix: 调整代码
CarefreeState Oct 16, 2024
82b9cc4
fix: 调整代码
CarefreeState Oct 16, 2024
78c0b9d
feat: docker 基建
BanTanger Oct 16, 2024
9d0825e
feat: docker 基建
BanTanger Oct 16, 2024
7756f86
fix: 调整代码
CarefreeState Oct 16, 2024
308bceb
fix: 使用 redis 锁避免出现问题
CarefreeState Oct 16, 2024
279cd3d
fix: 调整代码
CarefreeState Oct 16, 2024
b1aad57
Update docker-compose.yml
dbinggo Oct 16, 2024
c525635
feat: docker 基建
BanTanger Oct 16, 2024
f97f30f
Merge remote-tracking branch 'origin/feat-bantanger-docker-build' int…
BanTanger Oct 16, 2024
4f1d5e9
feat: 测试 docker minio 数据卷挂载能力,更新 minio 版本至 2024
BanTanger Oct 17, 2024
9390b3c
Merge branch 'feat-bantanger-docker-build' of github.com:AchoBeta/Ach…
CarefreeState Oct 17, 2024
9a8c416
fix: 调整代码
CarefreeState Oct 17, 2024
61981a3
fix: 调整代码
CarefreeState Oct 17, 2024
1d0f86b
fix: 调整代码
CarefreeState Oct 17, 2024
dc4bcfb
fix: 调整代码
CarefreeState Oct 17, 2024
95330f4
fix: 调整代码
CarefreeState Oct 17, 2024
922552f
fix: 调整代码
CarefreeState Oct 17, 2024
f5443fe
fix: 调整代码
CarefreeState Oct 17, 2024
f68e2c6
fix: 调整代码
CarefreeState Oct 17, 2024
7a1275a
fix: 修复一个 bug
CarefreeState Oct 17, 2024
bbd7f4a
fix: 修复一个 bug
CarefreeState Oct 18, 2024
d3e253e
fix: 调整代码
CarefreeState Oct 19, 2024
4939bae
fix: 调整代码
CarefreeState Oct 19, 2024
73ec72d
fix: 调整代码
CarefreeState Oct 19, 2024
a949753
fix: 调整代码
CarefreeState Oct 19, 2024
018be69
fix: 调整代码
CarefreeState Oct 19, 2024
018383d
fix: 调整代码
CarefreeState Oct 21, 2024
4d1410e
fix: 调整代码
CarefreeState Oct 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ build/

### Mac OS ###
.DS_Store
/.idea/
/.idea/
/docker/minio/data/.minio.sys/
/docker/minio/data/achobeta-recruitment/
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 基础镜像
FROM openjdk:21

# 配置
ENV PARAMS=""

# 时区
ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# 添加应用
ADD target/AchoBeta-Recruitment-1.0.jar /AchoBeta-Recruitment-1.0.jar

ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /AchoBeta-Recruitment-1.0.jar $PARAMS"]
20 changes: 16 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/zsh
# shellcheck disable=SC2164
#!/usr/bin/env bash
# Be sure your script exits whenever encounter errors

echo "---------------------------------"
echo "::: Welcome to AB-Recruitment :::"

set -e
# Be sure your charset is correct. eg: zh_CN.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

mvn clean install package -Dmaven.test.skip=true
docker-compose pull
docker-compose up -d --build

# 普通镜像构建,随系统版本构建 amd/arm

docker-compose -f docker-compose.yml up -d
184 changes: 176 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,180 @@
version: '3'
# 命令执行 docker-compose -f docker-compose.yml up -d
version: '3.9'
services:
recruitment:
container_name: achobeta-recruitment #配置容器名
mysql:
image: mysql:5.7
container_name: mysql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: achobeta666
MYSQL_USER: mms
MYSQL_PASSWORD: bitter-macaron
networks:
- my-network
depends_on:
- mysql-job-dbdata
ports:
- "13306:3306"
volumes:
- ./docker/mysql/db:/docker-entrypoint-initdb.d
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
interval: 5s
timeout: 10s
retries: 10
start_period: 15s

# 自动加载数据
mysql-job-dbdata:
image: alpine:3.18.2
container_name: mysql-job-dbdata
volumes:
- /var/lib/mysql

# phpmyadmin https://hub.docker.com/_/phpmyadmin
phpmyadmin:
image: phpmyadmin:5.2.1
container_name: phpmyadmin
hostname: phpmyadmin
ports:
- "8899:80"
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
- MYSQL_ROOT_PASSWORD=achobeta666
depends_on:
mysql:
condition: service_healthy
networks:
- my-network

# Redis
redis:
image: redis:6.2
container_name: redis
restart: always
hostname: redis
privileged: true
ports:
- "6379:6379"
volumes:
- ./docker/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
networks:
- my-network
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 3

# RedisAdmin https://github.com/joeferner/redis-commander
# 账密 admin/admin
redis-admin:
image: spryker/redis-commander:0.8.0
container_name: redis-admin
hostname: redis-commander
restart: always
ports:
- "8081:8081"
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=admin
- HTTP_PASSWORD=bitter-macaron
- LANG=C.UTF-8
- LANGUAGE=C.UTF-8
- LC_ALL=C.UTF-8
networks:
- my-network
depends_on:
redis:
condition: service_healthy

# rabbitmq
# 账密 admin/admin
# rabbitmq-plugins enable rabbitmq_management
rabbitmq:
image: rabbitmq:3.12.9
container_name: rabbitmq
restart: always
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: itcast
RABBITMQ_DEFAULT_PASS: 123321
command: rabbitmq-server
networks:
- my-network

# minio
minio:
image: minio/minio:RELEASE.2024-09-13T20-26-02Z
container_name: minio
hostname: minio
privileged: true
restart: always
environment:
# 账号
MINIO_ROOT_USER: mms
# 密码
MINIO_ROOT_PASSWORD: bitter-macaron
ports:
- "19005:19005"
- "9005:9005"
volumes:
- ./docker/minio/data:/data
command: server /data --console-address ":19005"
networks:
- my-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9005/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3

ab-recruitment-app:
container_name: ab-recruitment-app
build:
context: .
dockerfile: ./dockerfile #指定dockerFile文件
image: java/achobeta-recruitment:1.0.0 # 指定镜像名
context: ./
dockerfile: Dockerfile
restart: always
ports:
- "9001:9001" # 暴露端口
- "9001:19001"
environment:
- TZ=PRC
- SERVER_PORT=9001
- APP_CONFIG_API_VERSION=v1
- APP_CONFIG_CROSS_ORIGIN=*
- SPRING_DATASOURCE_USERNAME=mms
- SPRING_DATASOURCE_PASSWORD=bitter-macaron
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/achobeta_recruitment?serverTimezone=UTC&characterEncoding=utf8&autoReconnect=true&serverTimezone=Asia/Shanghai
- SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.jdbc.Driver
- SPRING_HIKARI_POOL_NAME=Retail_HikariCP
- REDIS_SDK_CONFIG_HOST=redis
- REDIS_SDK_CONFIG_PORT=6379
volumes:
- ./logs:/logs # 创建容器数据卷
- ./log:/data/log
depends_on:
- redis
- rabbitmq
- mysql
- minio
links:
- redis
- rabbitmq
- mysql
- minio
networks:
- my-network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

networks:
my-network:
driver: bridge
9 changes: 9 additions & 0 deletions docker/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 基础镜像
FROM mysql:5.7

# author
MAINTAINER BanTanger

# 执行sql脚本
# `/docker-entrypoint-initdb.d/`是MySQL官方镜像中的一个特殊目录,用于存放初始化数据库的脚本文件。
ADD ./db/*.sql /docker-entrypoint-initdb.d/
Loading
Loading