Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
software-project-WS25
Reddit Team
Commits
2762b320
Commit
2762b320
authored
Dec 09, 2025
by
Benavides Ontiveros
Browse files
update output directory
parent
2043d6f0
Pipeline
#12255
canceled with stages
in 2 minutes and 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2762b320
...
@@ -19,7 +19,7 @@ variables:
...
@@ -19,7 +19,7 @@ variables:
tags
:
tags
:
-
ubuntu
-
ubuntu
-
vm
-
vm
-
reddit
# Added Reddit VM tag
-
reddit
image
:
docker:24.0.9
image
:
docker:24.0.9
before_script
:
before_script
:
-
echo "Using host Docker daemon"
-
echo "Using host Docker daemon"
...
@@ -82,19 +82,19 @@ generate:
...
@@ -82,19 +82,19 @@ generate:
REDDIT_CLIENT_ID
:
"
${REDDIT_CLIENT_ID}"
REDDIT_CLIENT_ID
:
"
${REDDIT_CLIENT_ID}"
REDDIT_CLIENT_SECRET
:
"
${REDDIT_CLIENT_SECRET}"
REDDIT_CLIENT_SECRET
:
"
${REDDIT_CLIENT_SECRET}"
SUBREDDITS
:
"
${SUBREDDITS}"
SUBREDDITS
:
"
${SUBREDDITS}"
OUTPUT_DIR
:
"
/
generated"
# <- added shared VM folder
OUTPUT_DIR
:
"
/
reddit_output"
before_script
:
before_script
:
-
pip install -r requirements.txt
-
pip install -r requirements.txt
-
mkdir -p /
generated
-
mkdir -p /
reddit_output
script
:
script
:
-
echo "Running data generator..."
-
echo "Running data generator..."
-
python app.py
-
python app.py
-
echo "--- GENERATED
FILES INSIDE JOB
---"
-
echo "--- GENERATED
(local container folder)
---"
-
ls -Ra generated/ || echo "No files generated"
-
ls -Ra generated/ || echo "No files generated"
-
echo "Copying
all files (including .meta) to VM
..."
-
echo "Copying
to VM mapped folder
..."
-
cp -R generated/. /
generated
/ || echo "Copy failed!"
-
cp -R generated/. /
reddit_output
/ || echo "Copy failed!"
-
echo "---
FILES NOW IN VM
---"
-
echo "---
VM FOLDER CONTENTS
---"
-
ls -Ra /
generated
/
-
ls -Ra /
reddit_output
/
# =====================================================================
# =====================================================================
# INGEST
# INGEST
...
@@ -113,11 +113,11 @@ ingest:
...
@@ -113,11 +113,11 @@ ingest:
-
apt-get update && apt-get install -y gettext jq
-
apt-get update && apt-get install -y gettext jq
-
cp tools/filesystem-plugin-2.1.0.jar plugin.jar
-
cp tools/filesystem-plugin-2.1.0.jar plugin.jar
-
envsubst < tools/user-config.json > user-config.json
-
envsubst < tools/user-config.json > user-config.json
-
echo "---
GENERATED FILES ON VM
---"
-
echo "---
READING FROM VM FOLDER
---"
-
ls -Ra /
generated
/ || echo "No files found!"
-
ls -Ra /
reddit_output
/ || echo "No files found!"
script
:
script
:
-
echo "Running ingestion..."
-
echo "Running ingestion..."
-
java -jar plugin.jar "/
generated
"
-
java -jar plugin.jar "/
reddit_output
"
-
echo "Ingestion done."
-
echo "Ingestion done."
# =====================================================================
# =====================================================================
...
@@ -139,9 +139,6 @@ build:
...
@@ -139,9 +139,6 @@ build:
after_script
:
after_script
:
-
echo "Docker image built successfully!"
-
echo "Docker image built successfully!"
# =====================================================================
# DEPLOY
# =====================================================================
# =====================================================================
# =====================================================================
# DEPLOY
# DEPLOY
# =====================================================================
# =====================================================================
...
@@ -152,9 +149,6 @@ deploy:
...
@@ -152,9 +149,6 @@ deploy:
-
ubuntu
-
ubuntu
-
vm
-
vm
-
reddit
-
reddit
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
# Run on MRs
-
when
:
always
script
:
script
:
-
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
-
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
-
docker push $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA
-
docker push $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA
...
...
tools/user-config.json
View file @
2762b320
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
},
},
"filesystem"
:
{
"filesystem"
:
{
"sourcePaths"
:
[
"sourcePaths"
:
[
"/
generated
"
"/
reddit_output
"
]
]
}
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment