Skip to content

Commit ce078a8

Browse files
committed
testing
1 parent 0c8a26f commit ce078a8

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

build/docker/Dockerfile.upload

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ RUN python -m pip install --upgrade pip pyyaml requests linkml
66

77
RUN apt-get update && apt-get install -y git
88

9+
# Install necessary system packages: git, curl, and gpg
10+
RUN apt-get update && \
11+
apt-get install -y git curl gnupg && \
12+
rm -rf /var/lib/apt/lists/*
13+
14+
# Install GitHub CLI (gh)
15+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \
16+
gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg && \
17+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | \
18+
tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
19+
apt-get update && \
20+
apt-get install -y gh && \
21+
rm -rf /var/lib/apt/lists/*
22+
923

1024
RUN git clone https://github.com/PNNL-CompBio/coderdata.git
1125
WORKDIR /usr/src/app/coderdata

scripts/map_improve_sample_ids.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ def load_mapping(mapping_file='improve_sample_mapping.json'):
2424
"samples": []
2525
}, False
2626

27-
def save_mapping(mapping_data):
27+
def save_mapping(mapping_data,mapping_file):
2828
"""Saves mapping data to disk as JSON."""
29-
mapping_file='tmp/improve_sample_mapping.json'
3029
with open(mapping_file, 'w') as f:
3130
json.dump(mapping_data, f, indent=2)
3231

@@ -414,7 +413,7 @@ def main():
414413
key=lambda x: int(x["stable_id"]) if x["stable_id"].isdigit() else x["stable_id"]
415414
)
416415
# Save improve_sample_mapping.json
417-
save_mapping(mapping_data)
416+
save_mapping(mapping_data,mapping_file)
418417
print(f"improve_sample_mapping.json updated with {len(mapping_data['samples'])} samples.")
419418
# Determine if any improve_sample_ids were modified
420419
ids_modified = any(

0 commit comments

Comments
 (0)