From f383d7a64d9c05848404e0f661e44c1fc35ce8d4 Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 20:57:29 +0000 Subject: [PATCH 1/8] Apply patch --- java-twitter-feed-api/Dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 java-twitter-feed-api/Dockerfile diff --git a/java-twitter-feed-api/Dockerfile b/java-twitter-feed-api/Dockerfile new file mode 100644 index 0000000..e69de29 From 0a85b0562dc04fa8ab9bb5d5a562f783bf39a2f5 Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 20:57:46 +0000 Subject: [PATCH 2/8] Apply patch --- java-twitter-feed-api/Dockerfile | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/java-twitter-feed-api/Dockerfile b/java-twitter-feed-api/Dockerfile index e69de29..12e658f 100644 --- a/java-twitter-feed-api/Dockerfile +++ b/java-twitter-feed-api/Dockerfile @@ -0,0 +1,43 @@ +# Multi-stage build for Java Twitter Feed API +# Stage 1: Build the application +FROM openjdk:8-jdk-alpine AS builder + +# Install Maven +RUN apk add --no-cache maven + +# Set working directory +WORKDIR /app + +# Copy pom.xml first for better Docker layer caching +COPY pom.xml . + +# Download dependencies +RUN mvn dependency:go-offline -B + +# Copy source code +COPY src ./src + +# Build the WAR file +RUN mvn clean package -DskipTests + +# Stage 2: Runtime with Tomcat 8 +FROM tomcat:8-jre8-alpine + +# Remove default webapps +RUN rm -rf /usr/local/tomcat/webapps/* + +# Copy the WAR file from builder stage +COPY --from=builder /app/target/simple-service-webapp.war /usr/local/tomcat/webapps/ROOT.war + +# Set environment variables for Twitter OAuth credentials +ENV TWITTER_CONSUMER_KEY="" +ENV TWITTER_CONSUMER_SERVICE="" +ENV TWITTER_OAUTH_ACCESS_TOKEN="" +ENV TWITTER_OAUTH_ACCESS_TOKEN_SECRET="" + +# Expose port 8080 +EXPOSE 8080 + +# Start Tomcat +CMD ["catalina.sh", "run"] + From 0803cb56f0b55fdcfa62fcbf493cea6d1f12ae8f Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 20:58:52 +0000 Subject: [PATCH 3/8] Apply patch --- nodejs-users-api/Dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 nodejs-users-api/Dockerfile diff --git a/nodejs-users-api/Dockerfile b/nodejs-users-api/Dockerfile new file mode 100644 index 0000000..e69de29 From 789f96a70eae1d172c485f2333156d7b0b998369 Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 20:59:06 +0000 Subject: [PATCH 4/8] Apply patch --- nodejs-users-api/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/nodejs-users-api/Dockerfile b/nodejs-users-api/Dockerfile index e69de29..de6173d 100644 --- a/nodejs-users-api/Dockerfile +++ b/nodejs-users-api/Dockerfile @@ -0,0 +1,33 @@ +# Use Node.js 14 base image +FROM node:14-alpine + +# Set working directory +WORKDIR /app + +# Copy package.json first for better Docker layer caching +COPY package.json ./ + +# Install dependencies +RUN npm install + +# Copy source code +COPY server.js ./ +COPY config.js ./ +COPY test.js ./ +COPY app/ ./app/ + +# Expose port 8080 +EXPOSE 8080 + +# Set environment variables for MongoDB connection +ENV MONGODB_USER="" +ENV MONGODB_PASSWORD="" +ENV MONGODB_DATABASE="" +ENV DATABASE_SERVICE_NAME="" + +# Set environment variable for email service connection +ENV EMAIL_APPLICATION_DOMAIN="" + +# Start application with node server.js +CMD ["node", "server.js"] + From a767790a2c3e3492d7debb372736adde420276ba Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 20:59:52 +0000 Subject: [PATCH 5/8] Apply patch --- python-email-api/Dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 python-email-api/Dockerfile diff --git a/python-email-api/Dockerfile b/python-email-api/Dockerfile new file mode 100644 index 0000000..e69de29 From 934cc3f4e6fb1d611b3500b6963217aa427924b7 Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 21:00:07 +0000 Subject: [PATCH 6/8] Apply patch --- python-email-api/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/python-email-api/Dockerfile b/python-email-api/Dockerfile index e69de29..048ca80 100644 --- a/python-email-api/Dockerfile +++ b/python-email-api/Dockerfile @@ -0,0 +1,33 @@ +# Use Python 3.8 base image +FROM python:3.8-alpine + +# Set working directory +WORKDIR /app + +# Copy requirements.txt first for better Docker layer caching +COPY requirements.txt . + +# Install Python dependencies +RUN pip install --no-cache-dir -r requirements.txt + +# Copy source code +COPY sample.py . +COPY setup.py . + +# Set environment variables for Gmail SMTP +ENV GMAIL_USERNAME="" +ENV GMAIL_PASSWORD="" + +# Set environment variables for MySQL connection +ENV MYSQL_USER="" +ENV MYSQL_PASSWORD="" +ENV MYSQL_SERVICE_HOST="" +ENV MYSQL_DATABASE="" + +# Expose port 8080 +EXPOSE 8080 + +# Start application with gunicorn WSGI server +# The WSGI application is defined as 'api' in sample.py +CMD ["gunicorn", "--bind", "0.0.0.0:8080", "sample:api"] + From a348c7d926bf84273dffc31211c8ce3fc28df8ae Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 21:01:33 +0000 Subject: [PATCH 7/8] Apply patch --- php-ui/Dockerfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 php-ui/Dockerfile diff --git a/php-ui/Dockerfile b/php-ui/Dockerfile new file mode 100644 index 0000000..e69de29 From 89163cab0208d21bfa26e8d58f4bab51805a9dc4 Mon Sep 17 00:00:00 2001 From: "open-swe-dev[bot]" Date: Sun, 6 Jul 2025 21:01:46 +0000 Subject: [PATCH 8/8] Apply patch --- php-ui/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/php-ui/Dockerfile b/php-ui/Dockerfile index e69de29..479fb84 100644 --- a/php-ui/Dockerfile +++ b/php-ui/Dockerfile @@ -0,0 +1,28 @@ +# Use PHP 7.4 with Apache base image +FROM php:7.4-apache + +# Set working directory +WORKDIR /var/www/html + +# Copy all PHP files and static assets +COPY index.php . +COPY login.php . +COPY register.php . +COPY friends.php . +COPY profile.php . +COPY tweets.php . +COPY hack.php . +COPY head.php . +COPY style.css . +COPY script.js . + +# Set environment variables for backend service URLs +ENV USER_REG_SVC="" +ENV TWITTER_FEED_SVC="" + +# Expose port 80 (Apache default) +EXPOSE 80 + +# Apache is already configured to serve PHP files in the base image +# The default CMD starts Apache in the foreground +