liuyuqi-dellpc 1 year ago
parent
commit
7512bd5b36

+ 0 - 13
android-eclipse/build.sh

@@ -1,13 +0,0 @@
-#!/bin/bash
-# @Contact :   liuyuqi.gov@msn.cn
-# @Time    :   2023/03/19 19:11:52
-# @License :   (C)Copyright 2022 liuyuqi.
-# @Desc    :   build apk
-###############################################################################
-
-aapt package -f \
--M AndroidManifest.xml \ 
--I "$ANDROID_HOME/platforms/android-N/android.jar" \
--S res/ \
--J gen/ \
--m \

+ 65 - 0
build.sh

@@ -0,0 +1,65 @@
+#!/bin/bash
+# @Contact :   liuyuqi.gov@msn.cn
+# @Time    :   2023/03/19 19:11:52
+# @License :   (C)Copyright 2022 liuyuqi.
+# @Desc    :   build apk
+###############################################################################
+source /etc/profile
+
+export JAVA_HOME=/usr/local/openjdk-11
+# export JAVA_HOME=/root/.sdkman/candidates/java/21.0.1-ms/
+# source "$HOME/.sdkman/bin/sdkman-init.sh"
+# sdk list
+# sdk install 8.0.392-librca
+# sdk default 8.0.392-librca
+
+# flutter
+export PUB_HOSTED_URL=https://pub.flutter-io.cn
+export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
+
+# cd /opt/flutter
+# git checkout 2.0.5 
+# git checkout 3.7.9 
+# git checkout 3.13.8
+# flutter doctor
+
+# cd /workspace/flutter_you
+# flutter build apk
+# flutter build apk --debug
+# flutter pub get
+
+# android
+# cd /workspace/packagehunter
+# chmod +x gradlew
+# ./gradlew assembleDebug
+# ./gradlew cleanBuildCache
+
+# aapt package -f \
+# -M AndroidManifest.xml \ 
+# -I "$ANDROID_HOME/platforms/android-N/android.jar" \
+# -S res/ \
+# -J gen/ \
+# -m \
+
+# java
+# mvn package
+
+# node
+# cd 
+# yarn && yarn build
+# yarn && yarn dev
+
+# go
+# cd 
+# go build
+
+# python
+# pip install -r requirements.txt
+# python main.py
+
+# docker
+docker compose -f "docker-compose.debug.yml" down 
+docker compose -f "docker-compose.debug.yml" up -d --build
+docker compose  -f "docker-compose.debug.yml" up -d --build node_container
+# docker exec -it java_container /bin/sh
+docker exec -it node_container /bin/bash

+ 13 - 0
dotnet/docker-compose.debug.yml

@@ -0,0 +1,13 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    image: githubactionscreator
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    environment:
+      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
+    ports:
+      - 3000:3000
+      - 5005:5005

+ 1 - 0
flutter/Dockerfile

@@ -0,0 +1 @@
+FROM sift-docker.pkg.coding.net/flutter-team/dev-container/dev-allinone:1.0.5-flutter

+ 9 - 0
flutter/docker-compose.debug.yml

@@ -0,0 +1,9 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    image: openjdk:8-jdk-alpine
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    

+ 25 - 0
go/.dockerignore

@@ -0,0 +1,25 @@
+**/.classpath
+**/.dockerignore
+**/.env
+**/.git
+**/.gitignore
+**/.project
+**/.settings
+**/.toolstarget
+**/.vs
+**/.vscode
+**/*.*proj.user
+**/*.dbmdl
+**/*.jfm
+**/bin
+**/charts
+**/docker-compose*
+**/compose*
+**/Dockerfile*
+**/node_modules
+**/npm-debug.log
+**/obj
+**/secrets.dev.yaml
+**/values.dev.yaml
+LICENSE
+README.md

+ 13 - 0
go/docker-compose.debug.yml

@@ -0,0 +1,13 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    image: githubactionscreator
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    environment:
+      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
+    ports:
+      - 3000:3000
+      - 5005:5005

+ 25 - 0
java/.dockerignore

@@ -0,0 +1,25 @@
+**/.classpath
+**/.dockerignore
+**/.env
+**/.git
+**/.gitignore
+**/.project
+**/.settings
+**/.toolstarget
+**/.vs
+**/.vscode
+**/*.*proj.user
+**/*.dbmdl
+**/*.jfm
+**/bin
+**/charts
+**/docker-compose*
+**/compose*
+**/Dockerfile*
+**/node_modules
+**/npm-debug.log
+**/obj
+**/secrets.dev.yaml
+**/values.dev.yaml
+LICENSE
+README.md

+ 17 - 13
java/Dockerfile

@@ -1,16 +1,20 @@
-FROM openjdk:8 as base
-LABEL email="liuyuqi<liuyuqi.gov@msn.cn>"
-WORKDIR /app
-COPY . /app
-ENV JAVA_HOME=xx
+# FROM openjdk:8
+# FROM openjdk:8-jdk-alpine
+FROM maven:3.8.4-openjdk-11-slim AS builder
 
-FROM base as builder
-RUN mvn package
-
-FROM base as runner
+LABEL email="liuyuqi<liuyuqi.gov@msn.cn>"
 WORKDIR /app
-COPY --from=builder ./target/*.jar app.jar
+# COPY pom.xml .
+# COPY src ./src
+# RUN mvn clean package -DskipTests
+VOLUME [ "/app" ]
+CMD ["/bin/sh", "-c", "while true; do sleep 1000; done"]
 
-EXPOSE 8080
-VOLUME [ "/data" ]
-ENTRYPOINT ["java", "-jar", "/app.war"]
+# FROM openjdk:11-jre-slim as runner
+# WORKDIR /app
+# ARG JAVA_OPTS
+# ENV JAVA_OPTS=$JAVA_OPTS
+# COPY --from=builder ./target/*.jar app.jar
+# EXPOSE 8080
+# VOLUME [ "/app" ]
+# ENTRYPOINT ["exec", "java","$JAVA_OPTS" , "-jar", "app.jar"]

+ 16 - 0
java/docker-compose.debug.yml

@@ -0,0 +1,16 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    container_name: java_container
+    image: jianboy/java_container:latest
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    volumes:
+      - /workspace:/app
+    environment:
+      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
+    ports:
+      - 3000:3000
+      - 5005:5005

+ 41 - 0
java/docker-compose.yml

@@ -0,0 +1,41 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    image: jianboy/springboot:latest
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    ports:
+      - 3000:3000
+    volumes:
+      - hostPath:containerPath:ro
+
+  mysql:
+    image: mysql:5.7
+    environment:
+      MYSQL_ROOT_PASSWORD: root
+      MYSQL_DATABASE: githubactionscreator
+    ports:
+      - 3306:3306
+
+  redis:
+    image: redis:latest
+    ports:
+      - 6379:6379
+    
+  h2:
+    container_name: MyH2Instance
+    image: oscarfonts/h2:latest
+    ports:
+      - 1521:1521
+      - 81:81
+    volumes:
+      - $(pwd):/opt/h2-data
+    environment:
+      - H2_OPTIONS=-ifNotExists
+
+networks:
+  default:
+    external:
+      name: githubactionscreator

+ 4 - 5
nodejs/Dockerfile-build

@@ -1,15 +1,14 @@
 # FROM node:14 as builder
+# FROM node:16 as builder
 FROM node:20 as builder
 
-WORKDIR /workspaces
+WORKDIR /app
 
 ENV LANG C.UTF-8
 ENV LANGUAGE C.UTF-8
 
 RUN npm config set registry http://registry.npm.taobao.org
 RUN npm install pnpm -g
-# RUN pnpm install
-VOLUME [ "/workspaces" ]
-
-CMD [ "/bin/bash" ]
+VOLUME [ "/app" ]
 
+CMD ["/bin/sh", "-c", "while true; do sleep 1000; done"]

+ 40 - 0
nodejs/docker-compose.debug.yml

@@ -0,0 +1,40 @@
+version: '3'
+
+services:
+  node_container:
+    container_name: node_container
+    image: jianboy/node_container:latest
+    build:
+      context: .
+      dockerfile: ./Dockerfile-node
+    volumes:
+      - ./:/app
+      
+  frontend:
+    image: node:20
+    container_name: dev-frontend
+    build:
+      context: ./frontend
+      dockerfile: Dockerfile.dev
+    volumes:
+      - ./frontend/src:/app/src/
+      - ./frontend/public:/app/public
+    # env_file: .env
+    environment:
+      - NEXT_PUBLIC_ENV=development
+      - INFISICAL_TELEMETRY_ENABLED=${TELEMETRY_ENABLED}
+    networks:
+      - infisical-dev
+
+  mongo:
+    image: mongo
+    container_name: infisical-dev-mongo
+    restart: always
+    env_file: .env
+    environment:
+      - MONGO_INITDB_ROOT_USERNAME=root
+      - MONGO_INITDB_ROOT_PASSWORD=example
+    volumes:
+      - mongo-data:/data/db
+    networks:
+      - infisical-dev

+ 0 - 0
nodejs/docker-compose.dev.yml → php/docker-compose.debug.yml


+ 13 - 0
python/docker-compose.debug.yml

@@ -0,0 +1,13 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    image: githubactionscreator
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    environment:
+      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
+    ports:
+      - 3000:3000
+      - 5005:5005

+ 13 - 0
ruby/docker-compose.debug.yml

@@ -0,0 +1,13 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    image: githubactionscreator
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    environment:
+      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
+    ports:
+      - 3000:3000
+      - 5005:5005

+ 13 - 0
rust/docker-compose.debug.yml

@@ -0,0 +1,13 @@
+version: '3.4'
+
+services:
+  githubactionscreator:
+    image: githubactionscreator
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    environment:
+      JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005,quiet=y
+    ports:
+      - 3000:3000
+      - 5005:5005