📝 Update README with usage instructions and extend .gitignore rules
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
jobs/
|
||||
node-*.tar.xz
|
||||
|
||||
# ---> macOS
|
||||
# General
|
||||
.DS_Store
|
||||
|
||||
@@ -1,2 +1,10 @@
|
||||
# simple-harbor-task
|
||||
|
||||
> NOTE: `HARBOR_SKIP_AGENT_INSTALL=1` requires https://github.com/jht5945/harbor
|
||||
|
||||
```sh
|
||||
ANTHROPIC_API_KEY=sk-sp-c19****************************8 \
|
||||
ANTHROPIC_BASE_URL=https://coding.dashscope.aliyuncs.com/apps/anthropic \
|
||||
ANTHROPIC_MODEL=qwen3.6-plus \
|
||||
HARBOR_SKIP_AGENT_INSTALL=1 harbor run -a claude-code -p test1
|
||||
```
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
FROM task1-image:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["bash"]
|
||||
@@ -0,0 +1,36 @@
|
||||
FROM docker.m.daocloud.io/ubuntu:24.04
|
||||
|
||||
# RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
|
||||
# RUN sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
|
||||
|
||||
# RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list.d/ubuntu.sources && \
|
||||
# sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list.d/ubuntu.sources
|
||||
|
||||
RUN sed -i 's/ports.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list.d/ubuntu.sources
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
tree \
|
||||
jq \
|
||||
curl \
|
||||
xz-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
# get node from: https://npmmirror.com/mirrors/node/
|
||||
|
||||
COPY node-v22.0.0-linux-arm64.tar.xz /softs/
|
||||
|
||||
RUN cd /softs && tar -xf node-v22.0.0-linux-arm64.tar.xz && \
|
||||
ln -s /softs/node-v22.0.0-linux-arm64/bin/node /usr/bin/node && \
|
||||
ln -s /softs/node-v22.0.0-linux-arm64/bin/npm /usr/bin/npm && \
|
||||
ln -s /softs/node-v22.0.0-linux-arm64/bin/npx /usr/bin/npx
|
||||
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
|
||||
RUN npm install -g @anthropic-ai/claude-code
|
||||
|
||||
RUN ln -s /softs/node-v22.0.0-linux-arm64/bin/claude /usr/bin/claude
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["bash"]
|
||||
@@ -0,0 +1 @@
|
||||
hello
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Use this file to solve the task.
|
||||
@@ -0,0 +1,28 @@
|
||||
schema_version = "1.2"
|
||||
artifacts = []
|
||||
|
||||
[task]
|
||||
name = "hatter/test1"
|
||||
description = ""
|
||||
authors = []
|
||||
keywords = []
|
||||
|
||||
[metadata]
|
||||
|
||||
[verifier]
|
||||
timeout_sec = 600.0
|
||||
|
||||
[verifier.env]
|
||||
|
||||
[agent]
|
||||
timeout_sec = 600.0
|
||||
|
||||
[environment]
|
||||
build_timeout_sec = 600.0
|
||||
os = "linux"
|
||||
allow_internet = true
|
||||
mcp_servers = []
|
||||
|
||||
[environment.env]
|
||||
|
||||
[solution.env]
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'test.sh'
|
||||
echo 1 > /logs/verifier/reward.txt
|
||||
Reference in New Issue
Block a user