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
[C6.10-base] | |
name=CentOS-6.10 - Base | |
baseurl=http://vault.centos.org/6.10/os/$basearch/ | |
gpgcheck=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 | |
enabled=1 | |
metadata_expire=never | |
[C6.10-updates] | |
name=CentOS-6.10 - Updates |
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
-v /var/run/docker.sock:/var/run/docker.sock | |
-v /bin/docker:/bin/docker | |
-u root |
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
ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false); | |
provider.addIncludeFilter(new AssignableTypeFilter(MyClass.class)); | |
// scan in org.example.package | |
Set<BeanDefinition> components = provider.findCandidateComponents("org.example.package"); | |
for (BeanDefinition component : components) { | |
Class cls = Class.forName(component.getBeanClassName()); | |
// use class cls found | |
} |
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
// Will be written to `log/yyyy-MM-dd/demo.log` | |
Marker marker = MarkerFactory.getMarker("demo"); | |
log.info(marker, "hello world"); |
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
FROM node:alpine as builder | |
WORKDIR /usr/src/app | |
COPY package.json ./ | |
RUN yarn install | |
ADD src ./src | |
ADD *.json ./ | |
ADD *.conf.js ./ | |
ADD e2e ./e2e |
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
FROM openjdk:11-jre | |
WORKDIR /usr/src/app | |
EXPOSE 8080 | |
COPY ./build/install/<project> . | |
ENTRYPOINT ["sh","./bin/<project>", "--spring.profiles.active=edge"] | |
HEALTHCHECK --start-period=30s --interval=30s --timeout=3s --retries=3 \ | |
CMD curl --silent --fail --request GET http://localhost:8080/swagger-ui.html || exit 1 |
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
nohup java -jar \ | |
-Dcom.sun.management.jmxremote=true \ | |
-Dcom.sun.management.jmxremote.host=127.0.0.1 \ | |
-Dcom.sun.management.jmxremote.port=9090 \ | |
-Dcom.sun.management.jmxremote.ssl=false \ | |
-Dcom.sun.management.jmxremote.authenticate=false \ | |
-Djava.rmi.server.hostname=127.0.0.1 \ | |
xxx.jar &>/dev/null & |
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
export HTTP_PROXY=http://127.0.0.1:10809 | |
export HTTPS_PROXY=http://127.0.0.1:10809 | |
export ALL_PROXY=socks5://127.0.0.1:10808 | |
export NO_PROXY=localhost,127.0.0.1,10.96.0.0/12,192.168.99.0/24,192.168.39.0/24 |
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
mvn deploy -DaltDeploymentRepository=gitlab::default::https://gitlab.com/api/v4/projects/<project_id>/packages/maven |
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
git log --pretty=format:"- %s [%h](https://xxx/commit/%H)" > ~/Desktop/commit.log |